1.0.6 • Published 1 year ago

duration-time-conversion v1.0.6

Weekly downloads
76
License
MIT
Repository
github
Last release
1 year ago

duration-time-conversion

Duration and time format conversion

Install

Install with npm

$ npm install duration-time-conversion

Or install with yarn

$ yarn add duration-time-conversion
import DT from "duration-time-conversion.js";

Or umd builds are also available

<script src="path/to/duration-time-conversion.js"></script>

Will expose the global variable to window.DT.

Usage

// Duration to time
DT.d2t(3661.111) === "01:01:01.111";

// Time to Duration
DT.t2d("01:01:01.111") === 3661.111;

License

MIT © Harvey Zack

1.0.6

1 year ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago