Skip to content

areTimesEqual

  • The core functions, which every industry uses.
areTimesEqual(value1: string, value2: string): boolean

Return true if two PlainTime ISO strings represent the same time components.

  • Compares all time components: hour, minute, second, millisecond, microsecond, nanosecond.
  • Returns false if either input is invalid.
ParameterTypeDescription
value1stringfirst ISO PlainTime string
value2stringsecond ISO PlainTime string

boolean indicating whether both times are equal component-wise

import { areTimesEqual } from "@northguild/gmt/plain/compare";
areTimesEqual("12:34:56", "12:34:56") // true
output 

plain/compare/areTimesEqual.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.