Skip to content

parseNanosecondFromZoned

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

Return the nanosecond (0-999) from a zoned datetime string.

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

Nanosecond (000-999) or "" on invalid input

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

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