1.1.4 • Published 1 year ago

@addasoft/timespan v1.1.4

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

@addasoft/timespan

Format milliseconds as human-readable strings.

Install

npm install @addasoft/timespan

Use

import timespan from '@addasoft/timespan';

const time_in_ms = 1000;
console.log(timespan(time_in__ms));
// '00:01'

const hour_in_ms = 1000 * 60 * 60;
console.log(timespan(hour_in_ms));
// '01:00:00'

const humanized_hour = 1000 * 60 * 60;
console.log(timespan(humanized_hour, true));
// '1 hr'
1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago