1.0.0 • Published 6 years ago
timegrify v1.0.0
timegrify
Work with the time as if you were human
Install
npm install timegrify
Usage
const timegrify = require('timegrify');
timegrify('2 years').toMilis() // => 63072000000
Supported values
YEAR | DAY | HOURS |
---|---|---|
year | day | hour |
years | days | hours |
Methods
For now only has one method. Future versions will support more methods
Method | Description |
---|---|
.toMilis() | Return the value transformed to milliseconds |
.toSec() | Return the value transformed to seconds |
Contributors
Name |
---|
Christofer Flores |
License
MIT © Christofer Flores