leap seconds

Civil time is based on fixed-length atomic seconds for scientific purposes, but the Earth does not turn at a steady rate.

To keep clocks synchronized with the turning of the Earth, from 1972 to 2026 the International Earth Rotation and Reference Systems Service (IERS) occasionally added one second to the end of a day. That added second is known as a leap second.

I feel that leap seconds are a good compromise between the need of science for the length of a second to be fixed and the need of civil timekeeping for clocks that match the days and the seasons. Some people, however, feel that the software burden of dealing with leap seconds is too great, and would like to abolish them.

It appears that I have lost this argument, as the decision was made in 2026 to abolish leap seconds, replacing them with leap hours starting in 2027. The first leap hour will be far in the future, so the result of this decision is to make the problem of reconciling the turning of the Earth with fixed intervals of time much larger, but making it a problem for someone else.

Nevertheless, I have developed a software package which makes dealing with leap seconds easier, in the hope that some future generation will correct this decision and re-institute leap seconds. Until then this package assumes that leaps after 2026 will be of 3600 seconds.

You can find the source tarball for libtime on GitHub under the ShowControl project at https://github.com/ShowControl/libtime. For RPM-based distributions of GNU/Linux such as Fedora the source RPM is at the same location and in addition the library can be installed from COPR using johnsauter / libtime. Also, the source tarball can be built from files embedded in the PDF file at “Avoid Using POSIX time_t for Telling Time”.

Because the rotation of the Earth is irregular, it is not possible to predict when the next leap will be far in advance. This makes for a guessing game: when will the next leap be? At the time of this writing, in November of 2026, it looks like the next leap will be on December 31, 2763 and it will be a leap of 3600 seconds. Here is an illustration of that prediction:

In the above chart, UTC is time as measured by an atomic clock, and UT1 is the rotation of the Earth. The line shows the difference between them, with the part from 1973 to the present being the values measured and reported to the IERS, the part from the present to a year from now being the future values estimated by the IERS, and the part more than a year in the future being values projected further into the future. When a single leap second is introduced the line jumps by one second. When 3600 leap seconds are introduced all at once the line jumps by one hour. The IERS data in this chart was last updated by the IERS on November 26, 2026.

It is clear from the historical data displayed above that from 1972 to 2026 the IERS declared a leap second when UT1−UTC was between −0.2 and −0.7 seconds, though after 2000 the interval has been from −0.4 to −0.7 seconds. I predict that the next leap will be on December 31, 2763, when I project the value of UT1−UTC to be about −2518.135 seconds. Other reasonable dates for the date of the next leap are shown in the table below. Leap seconds when UT1−UTC is positive will be negative leap seconds, and leap seconds when UT1−UTC is negative will be positive leap seconds.

Predicted values of UT1-UTC assuming no leap seconds
dateUT1-UTC in seconds
December 31, 2761−2505.405
June 30, 2762−2508.584
December 31, 2762−2511.766
June 30, 2763−2514.950
December 31, 2763−2518.135
June 30, 2764−2521.333
December 31, 2764−2524.515
June 30, 2765−2527.707
December 31, 2765−2530.901

I predict the next leap date by running an algorithm over the UT1−UTC data as reported by the IERS or estimated using astronomical observations in the past and predictions and projections in the future. For details, including a table of leap seconds from the year −2000 to the year 7000, see “Extending Coordinated Universal Time to Dates Before 1972”.