node-duration
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

node-duration

Create and convert durations to other temporal units.

Build Status

Install

npm i --save node-duration

Usage

import { Duration } from "node-duration";
 
const duration = Duration.ofMillis(60000);
 
duration.toSeconds() // 60
duration.toMinutes() //  1

Readme

Keywords

Package Sidebar

Install

npm i node-duration

Weekly Downloads

14,302

Version

2.0.0

License

MIT

Unpacked Size

4.74 kB

Total Files

6

Last publish

Collaborators

  • cristianrgreco