Using zdump to verify timezone data
Hi. I need to verify the timezone data on a remote machine. Can anyone tell me the command using zdump?
|
On remote machine:
zdump -v /etc/localtime |grep 2007 That will show you start/stop for Daylight Saving Time for 2007. Typically /etc/localtime should be linked to or a copy of one of the zonefiles in /usr/share/zoneinfo (or its subdirectories). e.g. My /etc/localtime on one server is a copy of /usr/share/zoneinfo/America/New_York because I'm in the US Eastern Time zone like New York. You can also run zdump against those files e.g. zdump -v /usr/share/zoneinfo/America/New_York |grep 2007 zdump -v /usr/share/zoneinfo/America/Yellowknife |grep 2007 etc... Also type "echo $TZ" to see if your timezone variable is set - if it is then the value you see for time is whatever that specifies rather than /etc/localtime. /etc/localtime is the system global default. |
Thanks very much! Exactly what I wanted. :)
|
All times are GMT -5. The time now is 06:51 AM. |