@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
14 lines (13 loc) • 490 B
TypeScript
/**
* Return the current minute 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 minute string (zero-padded to 2 digits) or "" on invalid input
*
* @example getZonedMinute("America/New_York") // "00"
* @example getZonedMinute("invalid") // ""
*/
export declare function getZonedMinute(ianaTimezone: string): string;