No description
Find a file
2025-04-25 08:52:34 +02:00
.github/workflows
docs Show version string 2024-07-20 11:14:26 -05:00
leapseconddata Add timeout & improve coverage 2025-04-25 08:27:31 +02:00
LICENSES
.coveragerc Improve coverage & create InvalidContentError 2024-07-18 07:43:21 -05:00
.gitignore Add more complete documentation 2024-07-19 10:42:17 +02:00
.pre-commit-config.yaml
.pylintrc
.readthedocs.yaml
codecov.yml
Makefile
pyproject.toml Add more complete documentation 2024-07-19 10:42:17 +02:00
README.md
requirements-dev.txt Show version string 2024-07-20 11:14:26 -05:00
testleapseconddata.py Add timeout & improve coverage 2025-04-25 08:27:31 +02:00

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.

leapsecond program

Access leap second data from the command line.

Usage: leapsecond [OPTIONS] COMMAND [ARGS]...

  Access leap second database information

Options:
  --url TEXT            URL for leap second data (unspecified to use default
                        source)
  --debug / --no-debug
  --help                Show this message and exit.

Commands:
  convert              Convert timestamps between TAI and UTC
  info                 Show information about leap second database
  next-leapsecond      Get the next leap second after a given UTC timestamp
  offset               Get the UTC offset for a given moment, in seconds
  previous-leapsecond  Get the last leap second before a given UTC timestamp
  table                Print information about leap seconds