Crates.io | retz |
lib.rs | retz |
version | 0.1.2 |
source | src |
created_at | 2024-04-18 07:11:25.533189 |
updated_at | 2024-04-22 06:09:48.534613 |
description | Command-line tool to convert timestamps to other timezones |
homepage | |
repository | https://github.com/tanelikaivola/retz |
max_upload_size | |
id | 1212204 |
size | 31,824 |
Convert timestamps to other timezones.
cargo install retz
Command-line tool to convert timestamps to other timezones
Usage: retz [OPTIONS] [DATE]
Arguments:
[DATE] Date time in only proper format (RFC3339)
Options:
-t, --to <TZ> Convert to timezone
-q, --quiet Quiet, return just either target (if defined) or UTC
-a, --all List all timezones
-o, --order Order by offset instead of alphabetical
-h, --help Print help
-V, --version Print version
$ retz
UTC: 2024-03-31T09:34:56Z
Local: 2024-03-31T12:34:56+03:00
$ retz -q
2024-03-31T12:00:00Z
$ retz "2024-03-31T12:00:00Z"
Input: 2024-03-31T12:00:00Z
UTC: 2024-03-31T12:00:00Z
Local: 2024-03-31T15:00:00+03:00
$ retz -t "Australia/Eucla"
UTC: 2024-03-31T12:00:00Z
Local: 2024-03-31T15:00:00+03:00
Target: 2024-03-31T20:45:00+08:45
$ retz -a
UTC: 2024-03-31T12:00:00Z
Local: 2024-03-31T15:00:00+03:00
Africa/Abidjan: 2024-03-31T12:00:00Z
Africa/Accra: 2024-03-31T12:00:00Z
Africa/Addis_Ababa: 2024-03-31T15:00:00+03:00
...
UTC: 2024-03-31T12:00:00Z
Universal: 2024-03-31T12:00:00Z
W-SU: 2024-03-31T15:00:00+03:00
WET: 2024-03-31T13:00:00+01:00
Zulu: 2024-03-31T12:00:00Z