| Crates.io | tzbuddy |
| lib.rs | tzbuddy |
| version | 0.5.2 |
| created_at | 2020-10-27 20:21:38.946849+00 |
| updated_at | 2025-09-18 14:50:34.481931+00 |
| description | tzbuddy simply diplays current date/time in several timezones, together with a few hours before and after |
| homepage | https://github.com/gbagnoli/tzbuddy.rs |
| repository | https://github.com/gbagnoli/tzbuddy.rs |
| max_upload_size | |
| id | 306087 |
| size | 48,448 |
tzbuddy is a simple cli to visualize times in different timezones. It displays the current hour as well past and future values.
$ tzbuddy --tz Europe/Rome --tz Europe/Dublin --tz "US/Eastern" --tz "US/Pacific" --tz "Asia/Tokyo"
Asia/Tokyo (JST) Wed 05:17 28/10/2020 · 00+ 01+ 02+ 03+ 04+ | 05+| 06+ 07+ 08+ 09+ 10+ 11+
Europe/Rome (CET) Tue 21:17 27/10/2020 · 16 17 18 19 20 | 21 | 22 23 00+ 01+ 02+ 03+
Europe/Dublin (GMT) Tue 20:17 27/10/2020 · 15 16 17 18 19 | 20 | 21 22 23 00+ 01+ 02+
US/Eastern (EDT) Tue 16:17 27/10/2020 · 11 12 13 14 15 | 16 | 17 18 19 20 21 22
US/Pacific (PDT) Tue 13:17 27/10/2020 · 08 09 10 11 12 | 13 | 14 15 16 17 18 19
Binaries are provided for each tagged releases.
In alternative one install using cargo to build from source
cargo install tzbuddy
On macOS, with brew, you can use the brew tap repository
$ brew tap gbagnoli/tzbuddy
$ brew install tzbuddy
See tzbuddy --help for all available options.
tzbuddy uses timezones from the IANA database.
A list of available timezones can be found on
wikipedia.
You can run tzbuddy --list-timezones to have a list of regions, or tzbuddy --list-timezones <region> to print the list of available timezone identifiers
in that region.
Prior to version 0.3, tzbuddy did not support configuration files, and you
had to create an alias on the shell.
Since version 0.3 there is support for configuration. Simply pass --save and
tzbuddy will remember flags when running without. Eventual options on the
commandline takes precedence. --no-config will skip loading the config.
Running --save without any other option will save an empty config.
Configs are skipped for the --list-timezones above, and that option is never
stored.
there are git hooks one can use to automatically run checks before commit
ln -s $(pwd)/hooks/pre-commit.sh .git/hooks/pre-commit
ln -s $(pwd)/hooks/pre-push.sh .git/hooks/pre-push
to release:
cargo install cargo-releasecargo build)cargo release -vcargo release -v --execute to push the release