September 24, 2022

Display the time of any time zone in your terminal without connecting to the internet

To get the current time in a time zone run:

$ TZ=<tzdata> date

For example:

$ TZ=America/New_York date


$ TZ=PST8PDT date 


$ TZ=Asia/Istanbul date


$ TZ=Japan date

If you need to look up the same time often, in your terminal, you can use CRTL + R to retrieve a command in your history. For example:

CRTL + R and then start typing TZ

You can also assign an alias.

You can find a list of all tzdata” by running:

$ tzselect

terminal personal computing

No affiliates, No Google Analytics, No Facebook Pixel. © 2016-2022. Content is licensed under a CC BY-NC-SA 4.0.