2026-06-01 09:08:37 -07:00
|
|
|
# Team Time Zones
|
2026-06-08 05:53:41 +00:00
|
|
|
|
|
|
|
|
A simple CLI app for displaying rich 24 hour time information for multiple
|
|
|
|
|
people or locations.
|
|
|
|
|
|
2026-06-07 22:58:14 -07:00
|
|
|
[<img src="./docs/screenshot.png" title="Screenshot of a terminal window running the Team Time Zones TUI. The main
|
2026-06-08 05:53:41 +00:00
|
|
|
feature is a table displaying a list of locations across the top including
|
2026-06-07 22:58:14 -07:00
|
|
|
'Oakland', 'UTC', and 'Pacific Standard Time', each heading up a column of 24
|
2026-06-08 05:53:41 +00:00
|
|
|
cells displaying relative times throughout the day in the corresponding time
|
|
|
|
|
zone. Standard 9 to 5 working hours are highlighted in brighter text, and the
|
|
|
|
|
row representing the current hour is rendered in red. An input hint at the
|
2026-06-07 22:58:14 -07:00
|
|
|
bottom reads 'Filter' with a slash and 'Quit' with a Q." width="360">](./docs/screenshot.png)
|
|
|
|
|
|
2026-06-08 05:53:41 +00:00
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# Install Rust toolchain
|
|
|
|
|
mise install
|
|
|
|
|
# Build executable
|
|
|
|
|
cargo build --release
|
|
|
|
|
# Move to path (substitute any destination in your $PATH)
|
|
|
|
|
cp target/release/ttz /usr/local/bin
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
|
|
With example config:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
ttz -c ./ttz.example.kdl
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or create a `~/.config/ttz.kdl` to be loaded automatically. Refer to
|
|
|
|
|
`ttz --help` for more information.
|
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
TTZ uses the [KDL](https://kdl.dev/) format, with the following schema repeated
|
|
|
|
|
for each desired location:
|
|
|
|
|
|
|
|
|
|
```kdl
|
|
|
|
|
location "<DISPLAY NAME>" tz="<IANA TIME ZONE NAME>"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
For valid time zone names, refer to the
|
|
|
|
|
[chrono_tz docs](https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html),
|
|
|
|
|
[Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), or
|
|
|
|
|
the [IANA database](https://www.iana.org/time-zones).
|
|
|
|
|
|
|
|
|
|
Time zone names are case-sensitive.
|