Commit Graph

15 Commits

Author SHA1 Message Date
Michael Barrett
fa8d1519d2 update error when unable to parse timestring 2019-05-04 20:28:28 +01:00
Michael Barrett
a3ed595a17
Merge pull request #43 from prolink007/master
Added error checking for when an invalid string is input.
2019-05-04 20:19:30 +01:00
Michael Barrett
22aa7493d0 drop support for node < 8 2019-05-04 20:13:34 +01:00
Ashton Cummings
e0be5577a7 Added error checking for when an invalid string is input. 2018-09-20 09:26:31 -05:00
Devin Spikowski
a3f5260e55
Remove unnecessary escape characters 2018-05-14 04:30:57 -04:00
Devin Spikowski
5ee55a7dc1
Fix parsing of decimal input values
Previously, `1.5 hours` would parse as `5 hours`, or `1.0 hours` as `0 hours`

This was presumably working in 2012 with PR #2 but has since broken.
2018-05-14 04:23:52 -04:00
Michael Barrett
f7366f6dfa use daysPerYear to calculate month / year seconds 2017-07-25 22:29:35 +01:00
Michael Barrett
9ae3e78a4b 4.0.0 2017-04-22 14:29:36 +01:00
Michael Barrett
c65f26be31 use standard 2016-12-16 19:52:21 +00:00
Ian Mitchell
1ef5c298b8 Adds 'mon' for Month 2016-11-14 15:53:41 -08:00
mrbar42
2a4a37660a added ms unit 2016-07-30 17:56:51 +03:00
Michael Barrett
0e145aa905 refactor internals 2016-01-15 20:13:52 +00:00
Michael Barrett
8099cf427b dont modify string prototype 2016-01-15 15:51:48 +00:00
Michael Barrett
3434fe35f8 misc refactoring 2016-01-15 11:12:58 +00:00
Michael Barrett
8c0926f588 back to basics 2016-01-15 10:02:28 +00:00