getHour
Signature
Section titled “Signature”getHour(): stringReturn 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”import { getHour } from "@northguild/gmt/plain/get";
getHour() // "00"Source
Section titled “Source”Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.