copies input to output, converting timezone in any lines beginning with an ISO-8601 timestamp
Project description
tzc - time zone convert
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tzc-1.0.6.tar.gz.
File metadata
- Download URL: tzc-1.0.6.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625fed79103bbb308a3a61a47ca2e359ba8c3cf588363720e833ad4d3b94941c
|
|
| MD5 |
5440aa8ee3e635630896b402fe50994a
|
|
| BLAKE2b-256 |
8816ae51f2140164efc12fcae0f83460373c0428ccbb4c4961bfe017b40b5ad1
|
File details
Details for the file tzc-1.0.6-py3-none-any.whl.
File metadata
- Download URL: tzc-1.0.6-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91cda94b07766b5baa10e8183acb475da874fcea28d2447665c78bf47b491460
|
|
| MD5 |
e03f3b748ac8a1aec71d2103767bb969
|
|
| BLAKE2b-256 |
d4b026beac798e528c74f9e1e394a73ec9b447a33b244f68cbae7d7d17c4b717
|