english-time
Parses times written in simple English to unix time.
time = // => 314 // => 315000 // => 3660000 // => 3915000 // => 3915000 // => 2268000000 // => 2268000000
See List of Recognized Unit Aliases and tests for more info.
Install
$ npm install english-time
Milliseconds
- ms
- millisec
- millisecs
- milliseconds
- millisecond
Second(s)
- s
- sec
- secs
- seconds
- second
Minute(s)
- m
- min
- mins
- minute
- minutes
Hour(s)
- h
- hour
- hours
Day(s)
- d
- day
- days
Week(s)
- w
- week
- weeks
Month(s)
- mo
- month
- months
Year(s)
- y
- year
- years