cmux/node_modules/parse-ms
2026-01-29 17:36:26 -08:00
..
index.d.ts Update app and tooling 2026-01-29 17:36:26 -08:00
index.js Update app and tooling 2026-01-29 17:36:26 -08:00
license Update app and tooling 2026-01-29 17:36:26 -08:00
package.json Update app and tooling 2026-01-29 17:36:26 -08:00
readme.md Update app and tooling 2026-01-29 17:36:26 -08:00

parse-ms Build Status

Parse milliseconds into an object

Install

$ npm install parse-ms

Usage

const parseMilliseconds = require('parse-ms');

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

License

MIT © Sindre Sorhus