Showing my time zone info with zdump

How do I show my time zone info? does it has any Daylight Saving Time? What is the detailed info?

You can find the binary zone file at /usr/share/lib/zoneinfo, browse around, and you can use the directory and file name as reference with command below.

From here, if the isdst=0 means Daylight Saving Time is OFF, and if isdst=1 means Daylight Saving Time is ON.

$ zdump -v Australia/West
Australia/West  Mon Jan 27 11:09:51 2014 CUT
Australia/West  Fri Dec 13 20:45:52 1901 GMT = Sat Dec 14 04:15:52 1901 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Dec 14 20:45:52 1901 GMT = Sun Dec 15 04:15:52 1901 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Oct 26 17:59:59 1974 GMT = Sun Oct 27 01:29:59 1974 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Oct 26 18:00:00 1974 GMT = Sun Oct 27 01:30:00 1974 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Mar  1 17:59:59 1975 GMT = Sun Mar  2 01:29:59 1975 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Mar  1 18:00:00 1975 GMT = Sun Mar  2 01:30:00 1975 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Oct 29 17:59:59 1983 GMT = Sun Oct 30 01:29:59 1983 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Oct 29 18:00:00 1983 GMT = Sun Oct 30 01:30:00 1983 CUT isdst=0 gmtoff = 27000
Australia/West  Sat Mar  3 17:59:59 1984 GMT = Sun Mar  4 01:29:59 1984 CUT isdst=0 gmtoff = 27000
….

Am I using Daylight Saving Time (DST)?
We could say if the time zone variable ends in DT (or in our case DFT), DST is enabled.


$ grep -i /etc/environment                 # or
$ echo $TZ
TZ=NFT-1DFT-2,M3.5.0,M10.5.0        # DST is used
TZ=CUT                                                   # DST is not used

No comments: