Skip to content

isAfterUtc

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

Return whether value1 represents an instant strictly after value2.

  • Uses Temporal.Instant.compare for comparison.
  • Returns false if either input is invalid.
ParameterTypeDescription
value1stringfirst UTC datetime string
value2stringsecond UTC datetime string

true if value1 is after value2, otherwise false

import { isAfterUtc } from "@northguild/gmt/utc/compare";
isAfterUtc("2024-03-17T15:30:45Z", "2024-03-17T14:30:45Z") // true
output 

utc/compare/isAfterUtc.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.