Update README.md

This commit is contained in:
2019-12-10 12:21:24 +01:00
committed by GitHub
parent 92ab913f7e
commit 0c29e5123e

View File

@@ -29,8 +29,14 @@ d.humanize() // 'a few minutes'
#### `new Duration(amount, interval)` #### `new Duration(amount, interval)`
- amount: number - amount: number
- interval: 'millisecond', 'second', 'minute', 'hour', 'day', 'week', 'year' - interval:
Intervals can also be plural: e.g. 'days' is an alias for 'day' - millisecond, milliseconds, ms
- second, seconds, s
- minute, minutes, m
- hour, hours, h
- day, days, d
- week, weeks, w
- year, years, y
###### Examples ###### Examples