Data for official leap seconds, provided as a tuple of Unix timestamps
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leapseconds-2023.4.0.tar.gz.
File metadata
- Download URL: leapseconds-2023.4.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d350d2c2177132a7699f326b39d2a3e81a1fc6c418ca72d1be2ed3ff360fa36
|
|
| MD5 |
38ae2328aec27e2efa5e3d75bf78323f
|
|
| BLAKE2b-256 |
7f8dc0699181e0c17582033e7bf0f562152d16a73338d6d7b64d79c4b4c4498c
|
File details
Details for the file leapseconds-2023.4.0-py3-none-any.whl.
File metadata
- Download URL: leapseconds-2023.4.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d38c5cbc72b70f1fc01ff1a7cd110fc4d42e7b312cce6624e5827396773026
|
|
| MD5 |
b0cbe0f0fa4a3733c49b95eadbca96ce
|
|
| BLAKE2b-256 |
cfee0aadd5c0af342539296f39c22935375b5edad2f9eecf1905d31b0f226afd
|