codeql-action/node_modules/parse-ms
Henry Mercer 0a11e3fdd9 Bump packages to fix linter 2023-01-18 21:00:07 +00:00
..
index.d.ts Bump packages to fix linter 2023-01-18 21:00:07 +00:00
index.js Bump packages to fix linter 2023-01-18 21:00:07 +00:00
license Bump packages to fix linter 2023-01-18 21:00:07 +00:00
package.json Bump packages to fix linter 2023-01-18 21:00:07 +00:00
readme.md Bump packages to fix linter 2023-01-18 21:00:07 +00:00

readme.md

parse-ms

Parse milliseconds into an object

Install

$ npm install parse-ms

Usage

import parseMilliseconds from 'parse-ms';

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