Skip to content

chopZonedSeconds

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

Returns the zoned datetime string truncated to minute precision.

  • Removes seconds and milliseconds.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO 8601 zoned datetime string

Zoned datetime string at minute precision or "" for invalid

import { chopZonedSeconds } from "@northguild/gmt/zoned/chop";
chopZonedSeconds("2024-02-29T14:30:45.123+11:00[Australia/Sydney]") // "2024-02-29T14:30+11:00[Australia/Sydney]"
output 

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