time-converter.js
v1.0.3
Published
converts the time in human understandable time and machine understandable time too.
Downloads
3
Maintainers
Readme
Time Convertor
npm i time-converter.js
Usage
- .ms()
- .humanize()
Examples
const time = require('time-converter.js');
const humanizedTime = time.humanize(60000); //convert miliseconds into humanised time
console.log(humanizedTime); //return the value in string
const time = require('time-converter.js');
const miliseconds = time.ms('1 minute'); //convert humanised time into miliseconds
console.log(miliseconds); //return the value in integer