Skip to content

Change parsing of months. Use M for months and m for minutes#17

Open
nclaeys wants to merge 3 commits into
domchristie:masterfrom
nclaeys:master
Open

Change parsing of months. Use M for months and m for minutes#17
nclaeys wants to merge 3 commits into
domchristie:masterfrom
nclaeys:master

Conversation

@nclaeys
Copy link
Copy Markdown

@nclaeys nclaeys commented Sep 19, 2016

Changed the parsing in order to handle M as a pattern for months and m as a pattern for minutes. Added tests to validate that the parsing is done correctly.

  • test to parse 1M
  • test to parse 6M 1d and stringify it back
  • test to stringify 6 * MONTH + HOUR and back

-> made the pattern case sensitive and verified that the tests still pass

niels claeys and others added 3 commits September 19, 2016 13:35
…is is the same as the micro format used for minutes. Added tests for validating the parsing
Add a package.json so you can install this library via npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant