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.

7 lines • 302 B
import { Temporal } from "../internal/temporal.js"; import { DateTimeUnit } from "./date-time-unit.js"; /** * Units extractable from the current UTC instant via `getUtcNowUnit`. * Defined as `DateTimeUnit | "dayOfWeek"`. */ export type UtcNowUnit = Temporal.SmallestUnit<DateTimeUnit> | "dayOfWeek";