Skip to content

parseTimeFromZoned

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

Extract the plain time portion from an ISO 8601 zoned datetime string.

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

plain time string (HH:mm:ss[.sss]) or "" when invalid

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

zoned/parse/parseTimeFromZoned.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.