Skip to content

christo-pr/timegrify

Repository files navigation

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

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

About

Node package to work with the time as if you were a human

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published