Skip to content

taiMinusUtc

  • The core functions, which every industry uses.
taiMinusUtc(isoString: string): number | null

Return TAI − UTC, in whole seconds, at a UTC instant.

  • From the IERS leap-second table built into GMT (Leap_Second.dat through Bulletin C 72, 6 July 2026): 10 s from 1972-01-01, 37 s from 2017-01-01 on. The table is closed (continuous UTC from 20 May 2027, CGPM 2026), so 37 holds for every later date.
  • At an inserted leap second (…T23:59:60Z, accepted only on the 27 listed days) the value is the one before the insertion: TAI − UTC changes at 00:00:00 UTC.
  • null before 1972-01-01 (TAI − UTC was then fractional with a daily rate term), for a second-60 string on a day with no insertion, and on invalid input.
ParameterTypeDescription
isoStringstringISO 8601 instant string; a listed leap second (…T23:59:60Z) is accepted

TAI − UTC in seconds, or null on invalid input or a date before 1972

import { taiMinusUtc } from "@northguild/gmt/timescale/calculate";
taiMinusUtc("2024-01-01T00:00:00Z") // 37
output 

timescale/calculate/taiMinusUtc.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.