Skip to main content

Use the list of known and scheduled leap seconds

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leapseconddata-4.1.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

leapseconddata-4.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file leapseconddata-4.1.1.tar.gz.

File metadata

  • Download URL: leapseconddata-4.1.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for leapseconddata-4.1.1.tar.gz
Algorithm Hash digest
SHA256 de37bb5cfa8aac9d368d80d0db5fb46b376e32005d8d294f4af810925cee0991
MD5 074059755a9a6997a6725ebeaac855e6
BLAKE2b-256 d6a2e837961090fd574510113c127e8a24977fa46b4b46d824486067f381b43e

See more details on using hashes here.

File details

Details for the file leapseconddata-4.1.1-py3-none-any.whl.

File metadata

  • Download URL: leapseconddata-4.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for leapseconddata-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df684bd6745cf09e81d85bc97400506186abf79acf03c5050d054b7e6d188bad
MD5 84347b429561f7aa3b933c0c9be760a5
BLAKE2b-256 25f97711054b7a0deb3f4f5c4c1f77282996706c941584f3293abe7f3dd916ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page