# nextLeapSecond

Industry: Core

## Signature

```ts
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.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `isoString` | `string` | ISO 8601 instant string |

## Returns

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

## Examples

```ts
import { nextLeapSecond } from "@northguild/gmt/timescale/calculate";

nextLeapSecond("2016-01-01T00:00:00Z") // "2016-12-31T23:59:60Z"
```

## Source

[timescale/calculate/nextLeapSecond.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/timescale/calculate/nextLeapSecond.ts)
