getSystemTimeZone
Signature
Section titled “Signature”getSystemTimeZone(): stringReturn the runtime system timeZone name (for example “America/New_York”).
- 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() // "America/New_York"