Use the list of known and scheduled leap seconds
Project description
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
Release history Release notifications | RSS feed
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.0.tar.gz
(34.8 kB
view details)
Built Distribution
File details
Details for the file leapseconddata-4.1.0.tar.gz
.
File metadata
- Download URL: leapseconddata-4.1.0.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cd247b0e6d049db60ecc0b9fdee2732a9aed0110e074398544f9b1ffa85a16 |
|
MD5 | 314345cc57c79cd092fe45b4b09c922f |
|
BLAKE2b-256 | aaeff57b2b98f056715e46aa4a7133ffe82f0258da7430c0b848732a77a63481 |
File details
Details for the file leapseconddata-4.1.0-py3-none-any.whl
.
File metadata
- Download URL: leapseconddata-4.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ea1a76c5b8dc424862be4a35a4537082ccc8589cfaf26a311788088bbe1fb7 |
|
MD5 | 0d2fc16c0725e49291b81212d76b4727 |
|
BLAKE2b-256 | 169e2e43e41d7f44b7099b088d92e2a38452b4da469f3fef893fd5ff324729c0 |