leapseconddata

Use the list of known and scheduled leap seconds


License
GPL-3.0
Install
pip install leapseconddata==1.0.1

Documentation

Test leapseconddata codecov PyPI

Python Leap Second List

Leap seconds are corrections applied irregularly so that the UTC day stays fixed to the earth's rotation.

This module provides a class for parsing and validating the standard leap-seconds.list file. Once parsed, it is possible to retrieve the full list of leap seconds, or find the TAI-UTC offset for any UTC time.