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.

12 lines • 675 B
import { Temporal } from "./temporal.js"; /** * Read the calendar date `value` names, where `value` is a zoneless ISO date or datetime. * * The `calendar/` identifier functions share this gate. An offset, a bracketed zone or a `Z` * makes `value` a moment rather than a calendar date, and which date a moment falls on is a * zone decision the caller has to make and state — so those are rejected here rather than * silently answered in whatever zone the string happened to be written in. * * - Returns null on anything `isValidIsoDateLike` rejects, and on a Temporal throw. */ export declare function zonelessCalendarDate(value: string): Temporal.PlainDate | null;