parse-ms

2.0.0 • Public • Published

parse-ms Build Status

Parse milliseconds into an object

Install

$ npm install parse-ms

Usage

parseMs(1337000001);
/*
{
    days: 15,
    hours: 11,
    minutes: 23,
    seconds: 20,
    milliseconds: 1,
    microseconds: 0,
    nanoseconds: 0
}
*/

Related

  • pretty-ms - Convert milliseconds to a human readable string

License

MIT © Sindre Sorhus

install

npm i parse-ms

Downloadsweekly downloads

373,515

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability