Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ms-long

ser-ames6MITdeprecated1.0.3

this package has been deprecated

A package that allows you to quickly convert ms time into a long time format.

ms, convert, time, long time

readme

ms-long

ms-long is a package that allows the quick conversion of ms time to a readable format.

Usage

const mslong = require("ms-long");

//standard usage
mslong(240433673) //returns string "2 days, 18 hours, 47 minutes, 13 seconds, 673 milliseconds"

mslong(240433673, {short: true}) //returns string "2d, 18h, 47m, 13s, 673ms"

msLong(240433673, {array: true}) //returns array { days: 2, hours: 18, minutes: 47, seconds: 13, milliseconds: 673 }

msLong(240433673, {array: true, short: true}) //returns array { days: '2d', hours: '18h', minutes: '47m', seconds: '13s' milliseconds: '673ms' }