Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jepler/leapseconddata
Access data about past and scheduled leap seconds
https://github.com/jepler/leapseconddata
hacktoberfest leapsecond python tai time
Last synced: 29 days ago
JSON representation
Access data about past and scheduled leap seconds
- Host: GitHub
- URL: https://github.com/jepler/leapseconddata
- Owner: jepler
- Created: 2021-10-18T15:19:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T17:49:39.000Z (6 months ago)
- Last Synced: 2024-12-05T11:11:05.215Z (about 1 month ago)
- Topics: hacktoberfest, leapsecond, python, tai, time
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
[![Test leapseconddata](https://github.com/jepler/leapseconddata/actions/workflows/test.yml/badge.svg)](https://github.com/jepler/leapseconddata/actions/workflows/test.yml)
[![PyPI](https://img.shields.io/pypi/v/leapseconddata)](https://pypi.org/project/leapseconddata)
[![Documentation Status](https://readthedocs.org/projects/leapseconddata/badge/?version=latest)](https://leapseconddata.readthedocs.io/en/latest/?badge=latest)# 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
```