Skip to content

nextLeapSecond

  • The core functions, which every industry uses.
nextLeapSecond(isoString: string): string

Return the first leap second after a UTC instant, as its UTC label …T23:59:60Z.

  • From the IERS leap-second table built into GMT (Leap_Second.dat through Bulletin C 72, 6 July 2026).
  • "" for every instant from 2016-12-31T23:59:60Z on: there are no more. The table is closed (continuous UTC from 20 May 2027, CGPM 2026).
  • "" also on invalid input or a date before 1972; check with isValidInstant to tell them apart.
ParameterTypeDescription
isoStringstringISO 8601 instant string

the next leap second’s UTC label, or "" when there is none or on invalid input

import { nextLeapSecond } from "@northguild/gmt/timescale/calculate";
nextLeapSecond("2016-01-01T00:00:00Z") // "2016-12-31T23:59:60Z"
output 

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