UNPKG

@burglekitt/gmt

Version:

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

14 lines (13 loc) 449 B
/** * Return the current hour using the system timeZone. * * - Uses Temporal.Now.plainDateTimeISO to get current hour in system timezone. * - Returns zero-padded string (e.g., "14"). * - Returns "" when system timezone is unavailable. * * @returns current hour string (zero-padded) or "" on invalid * * @example getHour() // "00" * @example getHour() // "" (when system timeZone unavailable) */ export declare function getHour(): string;