> Insertion of each UTC leap second is usually decided about six months in advance by the International Earth Rotation and Reference Systems Service (IERS), when needed to ensure that the difference between the UTC and UT1 readings will never exceed 0.9 seconds

On Thursday, May 17, 2018, Wes Turner <> wrote:
AstroPy solves for leap seconds [1][2] according to the IAU ERFA (SOFA) library [3] and the IERS-B and IERS-A tables [4]. IERS-B tables ship with AstroPy. The latest IERS-A tables ("from 1973 though one year into the future") auto-download on first use [5].

[3] "Leap second day utc2tai interpolation"

On Thursday, May 17, 2018, Alexander Belopolsky <> wrote:

On Thu, May 17, 2018 at 3:13 PM Tim Peters <> wrote:
[Chris Barker]
> Does that support the other way -- or do we never lose a leap second anyway?
> (showing ignorance here)

Alexander covered the Python part of this,  ...

No, I did not.  I did not realize that the question was about skipping a second instead of inserting it.  Yes, regardless of whether it is possible given the physics of Earth rotation, negative leap seconds can be supported.  They simply become "gaps" in PEP 495 terminology.  Check out PEP 495 and read "second" whenever you see "hour". :-)