Skip to content

parseSecondFromZoned

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

Return the second (0-59) from a zoned datetime string.

  • Returns zero-padded string for second.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO zoned datetime string (e.g., “2024-03-15T14:30:45.123+00:00[UTC]”)

Second (00-59) or "" on invalid input

import { parseSecondFromZoned } from "@northguild/gmt/zoned/parse";
parseSecondFromZoned("2024-03-15T14:30:45+00:00[UTC]") // "45"
output 

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