Skip to content

parseSecondFromTime

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

Return the second (0-59) for a given ISO 8601 time string.

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

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

import { parseSecondFromTime } from "@northguild/gmt/plain/parse";
parseSecondFromTime("12:30:45") // "45"
output 

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