nextLeapSecond
Signature
Section titled “Signature”nextLeapSecond(isoString: string): stringReturn 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 withisValidInstantto tell them apart.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
isoString | string | ISO 8601 instant string |
Returns
Section titled “Returns”the next leap second’s UTC label, or "" when there is none or on invalid input
Examples
Section titled “Examples”import { nextLeapSecond } from "@northguild/gmt/timescale/calculate";
nextLeapSecond("2016-01-01T00:00:00Z") // "2016-12-31T23:59:60Z"Source
Section titled “Source”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.