@giancosta86/time-utils
v5.0.0
Published
Time-related utilities
Downloads
41
Readme
time-utils
Time-related utilities
Introduction
time-utils is a TypeScript library providing time-related types and functions.
Installation
The package on NPM is:
@giancosta86/time-utils
The public API entirely resides in the root package index, so one shouldn't reference specific modules.
Usage
Please, refer to:
the
IsoDate
classthe
Milliseconds
,Seconds
andMinutes
type aliasesdelay()
,epsilonDelay()
andsyncDelay
(especially for tests)the
Timestamp
alias - greatly combined withDate.now()
measureDuration
- to time both sync and async blocks (particularly in tests)