No description
* 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 |
||
|---|---|---|
| .github/workflows | ||
| LICENSES | ||
| .coveragerc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .pylintrc | ||
| codecov.yml | ||
| leapseconddata.py | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| setup.cfg | ||
| testleapseconddata.py | ||
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.