A leap second is an additional second added to Coordinated Universal Time (UTC) to correct for the discrepancy between the cesium atomic clock standard and solar time based on the Earth's actual rotation and revolution speed. Currently, leap seconds are added to maintain the difference between UTC and solar time within ±0.9 seconds. It is added either at the end of December 31st or at the end of June 30th.
TAI and POSIX time ignore leap seconds and always assume a day is 86,400 seconds. UTC can have 86,399 seconds due to leap seconds, and since TAI does not adjust its time when leap seconds occur, the difference between TAI time and UTC time accumulates over time. UTC considers leap seconds because it's based on astronomical standards. While both POSIX and TAI ignore leap seconds, TAI is a linear time that accurately measures real seconds, while POSIX is a UTC-based time that ignores leap seconds. Since 1972, starting with 10 seconds, 27 additional seconds have accumulated, making UTC has been exactly 37 seconds behind TAI.
Smearing is a method of gradually adjusting time to prevent large jumps when leap seconds occur. This approach is used to reduce discrepancies caused by leap seconds without directly reflecting them in POSIX time. However, the time adjustment method is not standardized and can be implemented differently by different systems (typically by distributing one second over a day). Due to this complexity and a major system failure in 2012, there are movements to eliminate leap seconds altogether until 2035.
Seconds Since the Epoch
This is not at all news, but it comes up often enough that I think there should be a concise explanation of the problem. People, myself included, like to say that POSIX time, also known as Unix time, is the number of seconds since the Unix epoch, which was 1970-01-01 at 00:00:00.
https://aphyr.com/posts/378-seconds-since-the-epoch
The leap second's time is up: world votes to stop pausing clocks
The practice of adding 'leap seconds' to official clocks to keep them in sync with Earth's rotation will be put on hold from 2035, the world's foremost metrology body has decided. The decision was made by representatives of governments worldwide at the General Conference on Weights and Measures (CGPM) outside Paris on 18 November.
https://www.nature.com/articles/d41586-022-03783-5

Problems
Problematic second - SarvenDev
Today, each of us has many possibilities to check the current time. We have smartphones, watches, computers, TVs, refrigerators, ovens, etc. Everyone knows what a year is and what it signifies. We understand time zones and UTC time. Everything seems trivial. However, from the point of view of IT systems, there are many surprises that we can encounter. Unfortunately, this causes us to face problems that occur very rarely.
https://sarvendev.com/2024/07/problematic-second/


Seonglae Cho