@giancosta86/time-utils
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

time-utils

Time-related utilities

GitHub CI npm version MIT License

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 class

  • the Milliseconds, Seconds and Minutes type aliases

  • delay(), epsilonDelay() and syncDelay (especially for tests)

  • the Timestamp alias - greatly combined with Date.now()

  • measureDuration - to time both sync and async blocks (particularly in tests)

Dependents (2)

Package Sidebar

Install

npm i @giancosta86/time-utils

Weekly Downloads

0

Version

5.0.0

License

MIT

Unpacked Size

11.8 kB

Total Files

26

Last publish

Collaborators

  • giancosta86