1.1.1 • Published 1 month ago

@addasoft/timespan v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month 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.1

1 month ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago