convert-ms

0.0.6 • Public • Published

About

convert-ms is a package for converting ms, to human time (hours, minutes, seconds).

Installation

Please make sure you have Node.js version 12.0.0 or later installed.

Add it to your project with: npm install convert-ms

Update it with: npm update convert-ms

Examples

const ms = require('convert-ms');

ms.toHMS(36000000);
// -> 10 hour(s), 0 minute(s), and 0 second(s)

ms.toHours(3600000);
// -> 10 hour(s)

ms.toMinutes(36000000);
// -> 600 minute(s)

ms.toSeconds(36000000);
// -> 36000 second(s)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.6
    14
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i convert-ms

Weekly Downloads

11

Version

0.0.6

License

ISC

Unpacked Size

3.17 kB

Total Files

3

Last publish

Collaborators

  • naaaah