Skip to content

parseMillisecondFromTime

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

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

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

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

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

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