-1

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.

2 Answers2

1

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
wurtel
  • 16,115
1

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.

Panki
  • 6,664