No description
Find a file
2024-07-17 22:00:05 -05:00
.github/workflows attempt to diagnose why a message about an unclosed socket is printed 2024-07-17 22:00:05 -05:00
docs Fix doc build 2024-07-17 21:13:36 -05:00
leapseconddata from_url no longer has a default 2024-07-17 21:50:19 -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 Transition to pyproject.toml 2024-07-17 14:30:34 -05:00
.pre-commit-config.yaml update pre-commit 2024-05-19 18:25:52 -04:00
.pylintrc remove option that disappeared from pylint (thanks guys) 2022-11-05 17:34:58 -05:00
.readthedocs.yaml get readthedocs working again 2024-07-16 15:37:30 -05:00
codecov.yml package-ize 2021-10-18 10:22:33 -05:00
Makefile check types in leapseconddata.py 2024-07-07 14:41:41 -05:00
pyproject.toml Disable conflicting ruff rule 2024-07-17 21:18:28 -05:00
README.md punctuate 2024-07-07 17:00:25 -05:00
requirements-dev.txt requires click to run the tests 2024-07-06 16:32:14 -05:00
testleapseconddata.py fix coverage & test 2024-07-17 21:40:42 -05: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