跳转到主要内容

使用已知的和计划的闰秒列表

项目描述

Test leapseconddata PyPI Documentation Status

Python 闰秒列表

闰秒是不规则地应用的校正,以使UTC日固定在地球自转上。

此模块提供了一个类,用于解析和验证标准的leap-seconds.list文件。一旦解析,就可以检索闰秒的完整列表,或找到任何UTC时间的TAI-UTC偏移。

leapsecond程序

从命令行访问闰秒数据。

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

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分布

leapseconddata-4.1.0.tar.gz (34.8 kB 查看哈希值)

上传时间:

构建分布

leapseconddata-4.1.0-py3-none-any.whl (9.5 kB 查看哈希值)

上传时间 Python 3

由以下支持