leapseconddata

Use the list of known and scheduled leap seconds


Keywords
hacktoberfest, leapsecond, python, tai, time
License
GPL-3.0
Install
pip install leapseconddata==2.1.1

Documentation

Test leapseconddata PyPI Documentation Status

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.