Skip to content

Commit

Permalink
Added definitions to timespan types
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanrenwick committed Nov 18, 2019
1 parent 0ba2e58 commit f1a26f1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Currently it supports the format:
```
Where `<quantity>` is a non-negative integer, and `<timespan>` is one of the following:
```
second, seconds, s
minute, minutes, m
hour, hours, h
day, days, d
week, weeks, w
month, months
year, years, y
decade, decades
second, seconds, s - 1 second
minute, minutes, m - 60 seconds
hour, hours, h - 60 minutes
day, days, d - 24 hours
week, weeks, w - 7 days
month, months - 30 days
year, years, y - 365 days
decade, decades - 10 years
```

chronoparse parses the given string, and returns an object using the following schema:
Expand Down

0 comments on commit f1a26f1

Please sign in to comment.