mstotime.js
v1.0.6
Published
A package to convert milliseconds to different units
Downloads
18
Readme
Installation
Node.js 12.0.0 or newer is required.npm install mstotime.js
Example usage
const msToTime = require("mstotime.js")
var time = msToTime.seconds(10000 , false);
// hours | minutes | seconds // true : float & false : integer
console.log(time);
output : 10
New Function
** Full time **
const mstotime = require("msToTime.js");
var resultFloat = mstotime.full(1000 , true);
var resultInteger = mstotime.full(1000 , false);
console.log("Float : " + resultFloat + " | Int : " + resultInteger);
output :
Float : 00.0002777777777777778:00.016666666666666666:01 | Int : 0:0:1