UNPKG

@burglekitt/gmt

Version:

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

14 lines (13 loc) 516 B
/** * Return the current millisecond for the specified IANA timeZone. * * - Uses Temporal.Now.zonedDateTimeISO to get the current time. * - Validation is performed on the timezone. * * @param ianaTimezone IANA timeZone identifier * @returns current millisecond string (zero-padded to 3 digits) or "" on invalid input * * @example getZonedMillisecond("America/New_York") // "000" * @example getZonedMillisecond("invalid") // "" */ export declare function getZonedMillisecond(ianaTimezone: string): string;