Leap Seconds

A leap second is a one-second adjustment to UTC that keeps atomic time aligned with the slightly irregular rotation of the Earth.

Why they exist

UTC counts SI seconds measured by atomic clocks. The Earth’s rotation, which defines astronomical time UT1, varies because of tides, the core and the atmosphere. Since 1972, UTC has been kept within 0.9 seconds of UT1 by inserting leap seconds when the IERS announces them, at the end of 30 June or 31 December.

How many

27 positive leap seconds were added between 1972 and 2016; the most recent was 2016-12-31T23:59:60Z. No negative leap second has ever been used. Because of these insertions, TAI is 37 seconds ahead of UTC and GPS time is 18 seconds ahead.

Computers and leap seconds

POSIX time, Unix timestamps and JavaScript dates assume every day has exactly 86,400 seconds, so they cannot represent 23:59:60. Operating systems either repeat a second or “smear” the extra second over many hours. UTCNow does not display leap seconds; RFC 3339 strings with :60 are reported as valid but not convertible.

The end of leap seconds

In November 2022 the General Conference on Weights and Measures decided that the tolerance between UT1 and UTC will be increased no later than 2035, effectively stopping leap seconds for at least a century. The exact new tolerance is still to be agreed.

Related pages