1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/workflow/see-overlaps-for-a-set-of-time-zones.md

26 lines
989 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# See Overlaps For A Set Of Time Zones
The `tz` command (`brew install tz`) will display by default your local time
and UTC for comparison. By including the `TZ_LIST` env var with a semi-colon
separated list of time zones, you can display several time zones to see how
they compare. The results are even color coded for working, flex, and
non-working hours.
```bash
TZ_LIST="US/Pacific;US/Central;Europe/Paris" tz
What time is it?
🕕 (CST) Local 6:59PM, Tue 05
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
🕓 (PST) US/Pacific 4:59PM, Tue 05
22 23 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
🕕 (CST) US/Central 6:59PM, Tue 05
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
🕐 (CET) Europe/Paris 1:59AM, Wed 06
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 0 1 2 3 4 5 6
```