跳转到主要内容

将输入复制到输出,将任何以ISO-8601时间戳开头的行转换为时区

项目描述

tzc - 时区转换

PyPI Changelog Tests License

将输入复制到输出,将任何以ISO-8601时间戳开头的行转换为时区

安装

使用pip安装此工具

$ pip install tzc

用法

Usage: tzc [OPTIONS] [INPUT_FILE] [OUTPUT_FILE]

  copy input to output, converting timezone in any lines starting with a
  timestamp

Options:
  --version               Show the version and exit.
  -i, --input-zone TEXT   timezone in file
  -o, --output-zone TEXT  output timezone
  -f, --format TEXT       output format (strptime)
  -s, --short             format output as YYYY-MM-DD HH:MM:SS
  --help                  Show this message and exit.

开发

要为此工具做出贡献,首先检出代码。然后创建一个新的虚拟环境

cd tzc
python -mvenv venv
source venv/bin/activate

或者如果你使用pipenv

pipenv shell

现在安装依赖项和测试

pip install -e '.[test]'

要运行测试

pytest

项目详情


下载文件

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

源分布

tzc-1.0.6.tar.gz (2.8 kB 查看哈希值)

上传时间:

构建分布

tzc-1.0.6-py3-none-any.whl (3.7 kB 查看哈希值)

上传时间: Python 3

支持者

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页