getSystemTimeZone
Signature
Section titled “Signature”getSystemTimeZone(): stringReturn the runtime system timeZone name (for example “Europe/London”).
- Uses Intl.DateTimeFormat().resolvedOptions().timeZone to get system timezone.
- Returns "" when the host reports no usable time zone. With an empty
TZthe runtime reports ICU’s placeholder"Etc/Unknown", and with an unrecognisedTZit reportsundefined; neither is a zone that Temporal orIntl.DateTimeFormataccepts.
Returns
Section titled “Returns”system timeZone name or "" on failure
Examples
Section titled “Examples”import { getSystemTimeZone } from "@northguild/gmt/zoned/get";
getSystemTimeZone() // "Europe/London"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.