My server runs on UCT time.
What is the command to check a specific time zone? i.e. America/New_York
And to be clear, I don't wish to update the servers time zone, I just want to know what it calculates another time zone to be.
My server runs on UCT time.
What is the command to check a specific time zone? i.e. America/New_York
And to be clear, I don't wish to update the servers time zone, I just want to know what it calculates another time zone to be.
The easiest way is to specify the time zone in the environment when running the date
command:
$ TZ=America/New_York date
Wed Jul 17 07:16:39 EDT 2019
From man date
:
Show the time on the west coast of the US (use tzselect(1) to find TZ)
$ TZ='America/Los_Angeles' date
This works by setting the variable TZ
to a new value just for the date
command.