Skip to content

chopZonedDate

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

Extracts the local time portion from an ISO 8601 zoned datetime string.

  • Extracts time components (hour, minute, second, subsecond) from a ZonedDateTime.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO 8601 zoned datetime string

The local time portion as HH:MM:SS(.SSS) or "" for invalid

import { chopZonedDate } from "@northguild/gmt/zoned/chop";
chopZonedDate("2024-02-29T14:30:45.123+09:00[Asia/Tokyo]") // "14:30:45.123"
output 

zoned/chop/chopZonedDate.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.