UNPKG

@burglekitt/gmt

Version:

Temporal-based date and time utilities with timezone support and polyfill integration

14 lines (13 loc) 483 B
/** * Return today's date in the given IANA timeZone as an ISO date string. * * - Uses Temporal.Now.zonedDateTimeISO to get current date in timezone. * - Returns "" for invalid timezone. * * @param ianaTimezone IANA timeZone identifier * @returns ISO date string (YYYY-MM-DD) or "" when invalid * * @example getZonedToday("America/New_York") // "2024-02-29" * @example getZonedToday("invalid") // "" */ export declare function getZonedToday(ianaTimezone: string): string;