mstotime.js

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i mstotime.js

Weekly Downloads

2

Version

1.0.6

License

Apache-2.0

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • armnajafi
  • aminmp3