getSystemTimeZone
Signature
Section titled “Signature”getSystemTimeZone(): stringimport { getSystemTimeZone } from "@northguild/gmt/zoned/get";Return the runtime system timeZone name (for example “America/New_York”).
- Uses Intl.DateTimeFormat().resolvedOptions().timeZone to get system timezone.
- Returns “” when timezone is unavailable.
Returns
Section titled “Returns”system timeZone name or “” on failure
Examples
Section titled “Examples”getSystemTimeZone() // "America/New_York"