Skip to main content

leapseconds

PyPi Version License Continuous Integration Code Coverage Python Versions


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 tuple of Unix timestamps (int) that represent officially announced leap seconds in chronological order.

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)

Source distribution for leapseconds 2023.4.0
File Size Uploaded
leapseconds-2023.4.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leapseconds 2023.4.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2023.4.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page