@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.
10 lines • 550 B
TypeScript
import { Temporal } from "../internal/temporal.js";
/**
* How a local wall time that a time zone's clock shows twice or never is resolved to an instant,
* as Temporal's `disambiguation` option (`Temporal.ZonedDateTime.from(item, { disambiguation })`).
*
* `"compatible"` takes the earlier instant of a repeated time and moves a skipped time forward by
* the length of the gap. `"earlier"` and `"later"` take that side in both cases, and `"reject"`
* accepts neither.
*/
export type Disambiguation = Temporal.ToInstantOptions["disambiguation"];