1.0.3 • Published 5 years ago
ms-long v1.0.3
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' }