small command line tool that shows times in timezones you’re interested in https://compounddata.com/projects/wtz/
  • Go 61.8%
  • JavaScript 16.9%
  • CSS 6.7%
  • Vue 4.1%
  • Shell 3.7%
  • Other 6.8%
Find a file
2025-01-23 07:57:17 +11:00
.github/workflows Replace goreleaser action and update README with download links 2025-01-23 07:57:17 +11:00
cmd Update var case 2025-01-20 08:49:37 +11:00
config Create wtz-gui 2024-12-30 07:39:18 +11:00
examples Rework timezone arg. 2020-09-09 21:05:54 +10:00
tests/integration fix: return error when timezone does not exist 2023-04-23 09:18:43 +10:00
tzlist Add formatting directive 2025-01-20 08:53:36 +11:00
tzlookup Add windows support 2025-01-21 18:07:00 +11:00
ui Create wtz-gui 2024-12-30 07:39:18 +11:00
.gitignore Create wtz-gui 2024-12-30 07:39:18 +11:00
.goreleaser.yaml feat: add goreleaser 2023-04-23 17:25:48 +10:00
go.mod Add windows support 2025-01-21 18:07:00 +11:00
go.sum Add windows support 2025-01-21 18:07:00 +11:00
Makefile Remove redundant target 2025-01-20 08:52:52 +11:00
README.md Replace goreleaser action and update README with download links 2025-01-23 07:57:17 +11:00
Taskfile.yml Add dependency task 2025-01-20 08:50:39 +11:00

wtz

wtz is a small command line tool that shows times in timezones you're interested in.

wtz was inspired by wtftz.sh.

Install

Download the wtz binary from one of the links below for your platform:

Usage

Your computers local timezone and UTC:

$ wtz --timezones UTC 
+-----------+-------+
| MELBOURNE |  UTC  |
+-----------+-------+
| 00:00     | 14:00 |
| 01:00     | 15:00 |
| 02:00     | 16:00 |
| 03:00     | 17:00 |
| 04:00     | 18:00 |
| 05:00     | 19:00 |
| 06:00     | 20:00 |
| 07:00     | 21:00 |
| 08:00     | 22:00 |
| 09:00     | 23:00 |
| 10:00     | 00:00 |
| 11:00     | 01:00 |
| 12:00     | 02:00 |
| 13:00     | 03:00 |
| 14:00     | 04:00 |
| 15:00     | 05:00 |
| 16:00     | 06:00 |
| 17:00     | 07:00 |
| 18:00     | 08:00 |
| 19:00     | 09:00 |
| 20:00     | 10:00 |
| 21:00     | 11:00 |
| 22:00     | 12:00 |
| 23:00     | 13:00 |
+-----------+-------+

Your local timezone and a list of other timezones:

$ wtz --timezones Europe/Madrid,America/New_York,America/Argentina/Buenos_Aires,UTC
+-----------+--------+----------+--------------+-------+
| MELBOURNE | MADRID | NEW YORK | BUENOS AIRES |  UTC  |
+-----------+--------+----------+--------------+-------+
| 00:00     | 16:00  | 10:00    | 11:00        | 14:00 |
| 01:00     | 17:00  | 11:00    | 12:00        | 15:00 |
| 02:00     | 18:00  | 12:00    | 13:00        | 16:00 |
| 03:00     | 19:00  | 13:00    | 14:00        | 17:00 |
| 04:00     | 20:00  | 14:00    | 15:00        | 18:00 |
| 05:00     | 21:00  | 15:00    | 16:00        | 19:00 |
| 06:00     | 22:00  | 16:00    | 17:00        | 20:00 |
| 07:00     | 23:00  | 17:00    | 18:00        | 21:00 |
| 08:00     | 00:00  | 18:00    | 19:00        | 22:00 |
| 09:00     | 01:00  | 19:00    | 20:00        | 23:00 |
| 10:00     | 02:00  | 20:00    | 21:00        | 00:00 |
| 11:00     | 03:00  | 21:00    | 22:00        | 01:00 |
| 12:00     | 04:00  | 22:00    | 23:00        | 02:00 |
| 13:00     | 05:00  | 23:00    | 00:00        | 03:00 |
| 14:00     | 06:00  | 00:00    | 01:00        | 04:00 |
| 15:00     | 07:00  | 01:00    | 02:00        | 05:00 |
| 16:00     | 08:00  | 02:00    | 03:00        | 06:00 |
| 17:00     | 09:00  | 03:00    | 04:00        | 07:00 |
| 18:00     | 10:00  | 04:00    | 05:00        | 08:00 |
| 19:00     | 11:00  | 05:00    | 06:00        | 09:00 |
| 20:00     | 12:00  | 06:00    | 07:00        | 10:00 |
| 21:00     | 13:00  | 07:00    | 08:00        | 11:00 |
| 22:00     | 14:00  | 08:00    | 09:00        | 12:00 |
| 23:00     | 15:00  | 09:00    | 10:00        | 13:00 |
+-----------+--------+----------+--------------+-------+

Same command above, but for a future date:

$ wtz --timezones Europe/Madrid,America/New_York,America/Argentina/Buenos_Aires,UTC --date 2022-01-01
+-----------+--------+----------+--------------+-------+
| MELBOURNE | MADRID | NEW YORK | BUENOS AIRES |  UTC  |
+-----------+--------+----------+--------------+-------+
| 00:00     | 14:00  | 08:00    | 10:00        | 13:00 |
| 01:00     | 15:00  | 09:00    | 11:00        | 14:00 |
| 02:00     | 16:00  | 10:00    | 12:00        | 15:00 |
| 03:00     | 17:00  | 11:00    | 13:00        | 16:00 |
| 04:00     | 18:00  | 12:00    | 14:00        | 17:00 |
| 05:00     | 19:00  | 13:00    | 15:00        | 18:00 |
| 06:00     | 20:00  | 14:00    | 16:00        | 19:00 |
| 07:00     | 21:00  | 15:00    | 17:00        | 20:00 |
| 08:00     | 22:00  | 16:00    | 18:00        | 21:00 |
| 09:00     | 23:00  | 17:00    | 19:00        | 22:00 |
| 10:00     | 00:00  | 18:00    | 20:00        | 23:00 |
| 11:00     | 01:00  | 19:00    | 21:00        | 00:00 |
| 12:00     | 02:00  | 20:00    | 22:00        | 01:00 |
| 13:00     | 03:00  | 21:00    | 23:00        | 02:00 |
| 14:00     | 04:00  | 22:00    | 00:00        | 03:00 |
| 15:00     | 05:00  | 23:00    | 01:00        | 04:00 |
| 16:00     | 06:00  | 00:00    | 02:00        | 05:00 |
| 17:00     | 07:00  | 01:00    | 03:00        | 06:00 |
| 18:00     | 08:00  | 02:00    | 04:00        | 07:00 |
| 19:00     | 09:00  | 03:00    | 05:00        | 08:00 |
| 20:00     | 10:00  | 04:00    | 06:00        | 09:00 |
| 21:00     | 11:00  | 05:00    | 07:00        | 10:00 |
| 22:00     | 12:00  | 06:00    | 08:00        | 11:00 |
| 23:00     | 13:00  | 07:00    | 09:00        | 12:00 |
+-----------+--------+----------+--------------+-------+

Or other timezones, not including your local timezone, with the first timezone listed being the main timezone starting at 00:00:

$ wtz --timezones Portugal,Singapore,Indian/Cocos,America/Montreal --include-local-timezone=false
+----------+-----------+-------+----------+
| PORTUGAL | SINGAPORE | COCOS | MONTREAL |
+----------+-----------+-------+----------+
| 00:00    | 07:00     | 05:30 | 19:00    |
| 01:00    | 08:00     | 06:30 | 20:00    |
| 02:00    | 09:00     | 07:30 | 21:00    |
| 03:00    | 10:00     | 08:30 | 22:00    |
| 04:00    | 11:00     | 09:30 | 23:00    |
| 05:00    | 12:00     | 10:30 | 00:00    |
| 06:00    | 13:00     | 11:30 | 01:00    |
| 07:00    | 14:00     | 12:30 | 02:00    |
| 08:00    | 15:00     | 13:30 | 03:00    |
| 09:00    | 16:00     | 14:30 | 04:00    |
| 10:00    | 17:00     | 15:30 | 05:00    |
| 11:00    | 18:00     | 16:30 | 06:00    |
| 12:00    | 19:00     | 17:30 | 07:00    |
| 13:00    | 20:00     | 18:30 | 08:00    |
| 14:00    | 21:00     | 19:30 | 09:00    |
| 15:00    | 22:00     | 20:30 | 10:00    |
| 16:00    | 23:00     | 21:30 | 11:00    |
| 17:00    | 00:00     | 22:30 | 12:00    |
| 18:00    | 01:00     | 23:30 | 13:00    |
| 19:00    | 02:00     | 00:30 | 14:00    |
| 20:00    | 03:00     | 01:30 | 15:00    |
| 21:00    | 04:00     | 02:30 | 16:00    |
| 22:00    | 05:00     | 03:30 | 17:00    |
| 23:00    | 06:00     | 04:30 | 18:00    |
+----------+-----------+-------+----------+

See examples/wtz.json as an example config file which can be copied to ~/.config/wtz/wtz.json.

List supported timezones:

$ wtz -list-supported-timezones