UNPKG

@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.

8 lines • 579 B
import { Temporal } from "../internal/temporal.js"; /** * The plural name of a duration field that has an exact length: `"days"`, or a time field from * `"hours"` down to `"nanoseconds"`. A day is 24 hours when nothing anchors it, as * TC39 Temporal's `Duration.prototype.total` reads one without `relativeTo`. Years, months and * weeks are left out: Temporal gives them no length without a date to measure from. */ export type ExactDurationUnit = keyof Pick<Temporal.DurationLike, "days" | "hours" | "minutes" | "seconds" | "milliseconds" | "microseconds" | "nanoseconds">;