1.0.0 • Published 7 years ago
timegrify v1.0.0
timegrify
Work with the time as if you were human
Install
npm install timegrifyUsage
const timegrify = require('timegrify');
timegrify('2 years').toMilis() // => 63072000000Supported 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