getHour
Signature
Section titled “Signature”getHour(): stringimport { getHour } from "@northguild/gmt/plain/get";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
Section titled “Returns”current hour string (zero-padded) or “” on invalid
Examples
Section titled “Examples”getHour() // "00"getHour() // "" (when system timeZone unavailable)