@northguild/gmt
Version:
Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.
6 lines • 334 B
TypeScript
/**
* Canonical 7-member unit for `Intl.RelativeTimeFormat` and Temporal `since`/`until`
* totals, excluding `quarter`. Shared by `formatRelativeUnix`, `formatRelativeUtc`,
* and `formatRelativeZoned` after importing from this barrel.
*/
export type RelativeUnit = "year" | "month" | "week" | "day" | "hour" | "minute" | "second";