UNPKG

@toreda/time

Version:

Simple, small footprint library for common time operations and converting between units of time.

12 lines (11 loc) 424 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeUnits = void 0; /** * Set of all canonical, supported `TimeUnit` values. Used by core * functions to validate that a value is a real `TimeUnit` (not an * alias). For alias→canonical resolution, see `timeUnitFromAlias`. * * @category Time Units */ exports.timeUnits = new Set(['μs', 'ms', 's', 'm', 'h', 'd', 'w', 'mo', 'y']);