human-interval / 0.1.5 last updated 3 months ago created on Oct 25th 2013
Install
npm install --save human-interval
Clone
git clone git@github.com:rschmukler/human-interval.git
dependencies
No dependencies listed.
maintainers
versions
6 total
| 0.1.5 | 3 months ago | rschmukler |
| 0.1.4 | 2 years ago | rschmukler |
| 0.1.3 | 2 years ago | rschmukler |
| 0.1.2 | 2 years ago | rschmukler |
| 0.1.1 | 2 years ago | rschmukler |
| 0.1.0 | 2 years ago | rschmukler |
readme
Human Interval
Human readable interval parser for Node.js/the Browser.
Heavily inspired by matthewmueller/date.
Example Usage
More sophisticated examples
humanInterval understands all of the following examples:
The full list
Supported Units
Human Interval supports the following units
secondsminuteshoursdaysweeksmonths-- assumes 30 daysyears-- assumes 365 days
Wordy Numbers
Human Interval supports numbers up to ten being written out in English. If you want to extend it, you can do so by adding more keys to the language map. Alternatively you could add support for alternative languages.