TZDIFF(1)
β¨ TZDIFF(1) β¨
okay bestie, so the manual name is tzdiff β it's in section 1 (General Commands Manual), and it is literally the "what time is it over there" tool of your dreams. π
πΈ NAME πΈ
tzdiff β shows you the timezone differences, side by side with your localtime. That's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
tzdiff [-0lvHN] [-n count] [-f format] [-t start] timzone [timezone ...]
[count] [0]
ngl bestie, timzone in there is exactly how the original spells it β not me being sloppy, that's a certified typo, and I am not fixing it because the rules say character-for-character. π
π DESCRIPTION π
So the tzdiff utility shows you the localtime of whatever timezone you name, plus yours, right next to each other. Iconic. Chef's kiss. π
You need at least one timezone name, like Asia/Tokyo. And here's the cute part β if you just hand it something like Asia, tzdiff will show you all the timezones inside Asia, and then you get to pick one from the results. Very "let me scroll the menu" energy. π
tzdiff also supports completion on timezone names, because it wants you to thrive. So for example, Tok means Asia/Tokyo. Short king behavior, we love it. β¨
The options are as follows, and yes we're doing all of them, no skips:
-hβ Show usage. (the classic "help meee" flag) π-0β Round down to hour. Also,0(zero) can be given as the last argument instead. β°-lβ Display the full timezone name (region/city). By default you only get the city.-ncount β Number of hours. Default is10. Can also be given as the last argument.-fformat β Output format of the time. It uses the output format ofdate(1).-tstart β Specify the start time. For the GNU date command, you can specify a flexible format. Otherwise, it supports one of"YYYY-mm-ddTHH:HH[Z]","YYYYmmddTHHMM[Z]"or"YYYYmmddHHMM[Z]"β and adding"Z"means UTC.-vβ Show version oftzdiff.-Hβ Scripting mode with timezone name. In scripting mode, the field separator isTABinstead of space.-HHβ Scripting mode without timezone name.-Nβ Display without local timezone.
π EXAMPLES π
All of these examples are running in JST, so keep that in mind bestie. π«Ά
The command:
tzdiff
will display the result of ls -F /usr/share/zoneinfo:
Africa/ Australia/ Etc/ MST WET
America/ CET Europe/ MST7MDT posixrules
--- snip --- snip --- snip ---
Asia/ EST Indian/ SystemV/
Atlantic/ EST5EDT MET UTC
The command:
tzdiff Eu
will display the result of ls -F /usr/share/zoneinfo/Europe:
Europe/Amsterdam Europe/Kiev Europe/Sarajevo
Europe/Andorra Europe/Kirov Europe/Saratov
--- snip --- snip --- snip ---
Europe/Jersey Europe/Samara
Europe/Kaliningrad Europe/San_Marino
The command:
tzdiff Europe/Amsterdam
will display the time of CET and localtime.:
Amsterdam
2018-12-19 14:52 CET 2018-12-19 22:52 JST
2018-12-19 15:52 CET 2018-12-19 23:52 JST
--- snip --- snip --- snip ---
2018-12-19 22:52 CET 2018-12-20 06:52 JST
2018-12-19 23:52 CET 2018-12-20 07:52 JST
The command:
tzdiff Lond New_ 0 3
will display:
London New_York
2018-12-20 01:00 GMT 2018-12-19 20:00 EST 2018-12-20 10:00 JST
2018-12-20 02:00 GMT 2018-12-19 21:00 EST 2018-12-20 11:00 JST
2018-12-20 03:00 GMT 2018-12-19 22:00 EST 2018-12-20 12:00 JST
See howLondandNew_did the completion thing AND0and3did the round-down + hour-count thing? ate. π₯
π SEE ALSO π
tzdiff on Github: https://github.com/belgianbeer/tzdiff β go give it a star, it's free π
π AUTHOR π
Written by Masato Minda β thank you for your service, king π«‘
and that's a wrap bestie!! this lil page is from the <strong>Debian</strong> fam, version dated <strong>Jul 17, 2023</strong>. go check what time it is in Tokyo, mwah π
π¦ where this page comes from
- debian trixie: tzdiff 1.2.1-1 Β· BSD-2-Clause
- ubuntu noble: tzdiff 1.2-1 Β· BSD-2-Clause
- ubuntu questing: tzdiff 1.2.1-1
- ubuntu resolute: tzdiff 1.2.1-1build1 Β· BSD-2-Clause
- ubuntu stonking: tzdiff 1.2.1-1build1 Β· BSD-2-Clause
- Copyright (c) 2016 - 2023 Masato Minda
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms