tzc

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


License
MIT
Install
pip install tzc==1.0.6

Documentation

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