Skip to content

parseNanosecondFromTime

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

Return the nanosecond (0-999) for a given ISO 8601 time string.

  • Returns zero-padded string for nanosecond.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO time string

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

import { parseNanosecondFromTime } from "@northguild/gmt/plain/parse";
parseNanosecondFromTime("12:30:45.123") // "000"
output 

plain/parse/parseNanosecondFromTime.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.