@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 • 392 B
TypeScript
import { Temporal } from "../internal/temporal.js";
/**
* A time field of an ISO 8601 duration, in the plural, from `"hours"` down to `"nanoseconds"`.
* It names the unit an amount of time is given in or a time difference is measured in.
*/
export type TimeDurationUnit = keyof Pick<Temporal.DurationLike, "hours" | "minutes" | "seconds" | "milliseconds" | "microseconds" | "nanoseconds">;