Update README.md

This commit is contained in:
Nicco 2019-12-10 12:21:24 +01:00 committed by GitHub
parent 92ab913f7e
commit 0c29e5123e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

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