Skip to content

maxUtc

  • The core functions, which every industry uses.
maxUtc(utcDateTimes: string[]): string | null

Return the latest (maximum) of the given UTC datetime values.

  • Filters invalid values before finding maximum.
  • Returns null if array is empty or has no valid values.
ParameterTypeDescription
utcDateTimesstring[]Array of ISO datetime strings (e.g. “2024-03-10T12:00:00Z”)

The latest UTC datetime string, or null on invalid input

import { maxUtc } from "@northguild/gmt/utc/calculate";
maxUtc(["2024-03-10T12:00:00Z", "2024-03-15T12:00:00Z", "2024-03-12T12:00:00Z"]) // "2024-03-15T12:00:00Z"
utcDateTimes
output 

utc/calculate/maxUtc.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.