eggert at twinsun.com
Tue Aug 8 22:31:30 UTC 2000
> From: Henry Grebler [SMTP:henryg at optimation.com.au]
> Sent: Monday, August 07, 2000 10:31 PM
> To address this issue, I have written a little utility, cvt_time. I
> enclose source, Makefile and man page.
I would add this functionality to "date" rather than having a separate
utility. I believe that GNU "date" already has options to do what you
want; see its -d, -f, and -r options. If you have time, perhaps you
could contribute implementations of these options to the tz date
When faced with problems like that, I generally use something like the
following shell transcript.
$ zdump -v Australia/Hobart | grep 2000
Australia/Hobart Sat Mar 25 15:59:59 2000 UTC = Sun Mar 26 02:59:59 2000 EST isdst=1
Australia/Hobart Sat Mar 25 16:00:00 2000 UTC = Sun Mar 26 02:00:00 2000 EST isdst=0
Australia/Hobart Sat Aug 26 15:59:59 2000 UTC = Sun Aug 27 01:59:59 2000 EST isdst=0
Australia/Hobart Sat Aug 26 16:00:00 2000 UTC = Sun Aug 27 03:00:00 2000 EST isdst=1
One advantage of this approach is that you don't need to specify magic
numbers like 967305600.
More information about the tz