mt

ms-to

Convert milliseconds to other formats

Showing:

Popularity

Downloads/wk

111

GitHub Stars

9

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

ms-to Build Status

Convert milliseconds to other formats

Install

$ npm install --save ms-to

Usage

const msTo = require('ms-to');

msTo(1000 * 60 * 60 * 24);
/*
{
    days: 1,
    hours: 24,
    minutes: 1440,
    seconds: 86400,
    milliseconds: 86400000
}
 */

API

msTo(ms)

ms

Type: number

Value in milliseconds to convert.

License

MIT © Kevin Martensson

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100