leapseconds
leapseconds is a Python library with data on official leap seconds, provided as a tuple of Unix timestamps.
Source data: https://www.ietf.org/timezones/data/leap-seconds.list
Installation
pip install leapseconds
Usage
from leapseconds import LEAP_SECONDS
# Check if a Unix timestamp represents an officially announced leap second:
if 63072000 in LEAP_SECONDS:
print("True")
LEAP_SECONDS:- A
tupleof Unix timestamps (int) that represent officially announced leap seconds in chronological order.
- A
License
leapseconds is distributed under the terms of the MIT license.
Release files for leapseconds 2023.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leapseconds-2023.4.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leapseconds-2023.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / leapseconds-2023.4.0.tar.gz
| Download URL | leapseconds-2023.4.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d350d2c2177132a7699f326b39d2a3e81a1fc6c418ca72d1be2ed3ff360fa36
|
|
BLAKE2b-256 checksum How to use checksums |
7f8dc0699181e0c17582033e7bf0f562152d16a73338d6d7b64d79c4b4c4498c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / leapseconds-2023.4.0-py3-none-any.whl
| Download URL | leapseconds-2023.4.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59d38c5cbc72b70f1fc01ff1a7cd110fc4d42e7b312cce6624e5827396773026
|
|
BLAKE2b-256 checksum How to use checksums |
cfee0aadd5c0af342539296f39c22935375b5edad2f9eecf1905d31b0f226afd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|