1.0.0 • Published 6 years ago

timegrify v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

timegrify

npm build status styled with standard made with lass license

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

YEARDAYHOURS
yeardayhour
yearsdayshours

Methods

For now only has one method. Future versions will support more methods

MethodDescription
.toMilis()Return the value transformed to milliseconds
.toSec()Return the value transformed to seconds

Contributors

Name
Christofer Flores

License

MIT © Christofer Flores