No description
Find a file
Jeff Epler 8007b02dcc Add more TAI-wrangling
* leapseconddata.tai is a timezone object.  BEWARE, because of reasons,
   it compares equal to datetime.datetime.utc!

 * tai_offset can take either kind of timestamp

 * to_tai, tai_to_utc: convert to/from the TAI timescale.

 * is_leap_second: return True if the given second is a leap second.
   In the UTC timescale, the ":59" second returns True even though
   "only" the second repetition of :59 is a leap second
2021-10-20 14:44:34 -05:00
.github/workflows Add more TAI-wrangling 2021-10-20 14:44:34 -05:00
LICENSES package-ize 2021-10-18 10:22:33 -05:00
.coveragerc package-ize 2021-10-18 10:22:33 -05:00
.gitignore package-ize 2021-10-18 10:22:33 -05:00
.pre-commit-config.yaml package-ize 2021-10-18 10:22:33 -05:00
.pylintrc package-ize 2021-10-18 10:22:33 -05:00
codecov.yml package-ize 2021-10-18 10:22:33 -05:00
leapseconddata.py Add more TAI-wrangling 2021-10-20 14:44:34 -05:00
Makefile Add more TAI-wrangling 2021-10-20 14:44:34 -05:00
pyproject.toml version numbers important 2021-10-18 10:45:38 -05:00
README.md Update README.md 2021-10-18 19:48:42 -05:00
requirements-dev.txt package-ize 2021-10-18 10:22:33 -05:00
setup.cfg package-ize 2021-10-18 10:22:33 -05:00
testleapseconddata.py Add more TAI-wrangling 2021-10-20 14:44:34 -05:00

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.