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.

9 lines • 307 B
import { Temporal } from "./temporal.js"; /** * Today's date in the host's time zone. * * @returns the date, or `null` when the host reports no time zone or the clock cannot be read * * @example todayDate()?.toString() // "2024-03-10" */ export declare function todayDate(): Temporal.PlainDate | null;