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.

11 lines • 365 B
/** * Return the current PlainDate as an ISO string in the system timeZone. * * - Uses nowZonedDateTimeISO() to get current date in system timezone. * - Returns "" when system timezone is unavailable. * * @returns ISO 8601 PlainDate string or "" on error * * @example getToday() // "2024-03-15" (current date) */ export declare function getToday(): string;