Skip to main content

copies input to output, converting timezone in any lines beginning with an ISO-8601 timestamp

Project description

tzc - time zone convert

PyPI Changelog Tests License

copies input to output, converting timezone in any lines beginning with an ISO-8601 timestamp

Installation

Install this tool using pip:

$ pip install tzc

Usage

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.

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

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

Or if you are using pipenv:

pipenv shell

Now install the dependencies and tests:

pip install -e '.[test]'

To run the tests:

pytest

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

tzc-1.0.6.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

tzc-1.0.6-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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