Skip to content

parseTimeZoneFromZoned

  • The core functions, which every industry uses.
parseTimeZoneFromZoned(value: string): string

Extract the IANA timeZone identifier from an ISO 8601 zoned datetime string.

  • Extracts timeZone id from a ZonedDateTime.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringzoned ISO 8601 datetime string

IANA timeZone id or "" when invalid

import { parseTimeZoneFromZoned } from "@northguild/gmt/zoned/parse";
parseTimeZoneFromZoned("2024-02-29T12:34:56.789+00:00[UTC]") // "UTC"
output 

zoned/parse/parseTimeZoneFromZoned.ts

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.