UNPKG

@toreda/time

Version:

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

10 lines (9 loc) 265 B
import type { Time } from '../time'; import type { TimeUnit } from './unit'; /** * Create timestamp using current time at creation. Does not automatically * update to match * @param units * @returns */ export declare function timeNow(units?: TimeUnit): Time;