Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Parse milliseconds into an object

License

Notifications You must be signed in to change notification settings

evergrace-co/parse-seconds

 
 

Repository files navigation

parse-seconds

Parse seoncs into an object

Install

$ npm install parse-seconds

Usage

import parseSeconds from 'parse-seconds';

parseSeconds(1337000001);
/*
{
	days: 15,
	hours: 11,
	minutes: 23,
}
*/

Related

  • to-seoncs - The inverse of this module
  • pretty-ms - Convert seoncs to a human readable string

About

Parse milliseconds into an object

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.3%
  • TypeScript 14.7%