Skip to main content

Data for official leap seconds, provided as a tuple of Unix timestamps

Project description

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.

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

leapseconds-2023.4.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

leapseconds-2023.4.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for leapseconds-2023.4.0.tar.gz
Algorithm Hash digest
SHA256 5d350d2c2177132a7699f326b39d2a3e81a1fc6c418ca72d1be2ed3ff360fa36
MD5 38ae2328aec27e2efa5e3d75bf78323f
BLAKE2b-256 7f8dc0699181e0c17582033e7bf0f562152d16a73338d6d7b64d79c4b4c4498c

See more details on using hashes here.

File details

Details for the file leapseconds-2023.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for leapseconds-2023.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59d38c5cbc72b70f1fc01ff1a7cd110fc4d42e7b312cce6624e5827396773026
MD5 b0cbe0f0fa4a3733c49b95eadbca96ce
BLAKE2b-256 cfee0aadd5c0af342539296f39c22935375b5edad2f9eecf1905d31b0f226afd

See more details on using hashes here.

Supported by

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