@toreda/time
Version:
Simple, small footprint library for common time operations and converting between units of time.
14 lines (13 loc) • 433 B
TypeScript
import { Log } from '@toreda/log';
import type { Time } from '../time';
import type { TimeUnit } from './unit';
/**
* Create a new Time instance with the provided unit type and initial value. Wraps an
* internal data instance only available in factory function closure.
* @param units
* @param initial
* @returns
*
* @category Factories
*/
export declare function timeMake(units: TimeUnit, initial: number, log?: Log): Time;