Henry Grebler is not on the time zone mailing list; direct any replies appropriately. --ado
-----Original Message----- From: Henry Grebler [SMTP:henryg@optimation.com.au] Sent: Monday, August 07, 2000 10:31 PM To: tz@elsie.nci.nih.gov Subject: Timezone utility
#To: tz@elsie.nci.nih.gov
#From: henryg@optimation.com.au Henry Grebler Support Manager Optimation Software Engineering Pty Ltd Level 9 West, 608 St Kilda Road Melbourne, Vic, 3004, Australia
Phone: +61 3 9525 2111 Fax: +61 3 9521 1733 URL: http://www.optimation.com.au
Hi,
First of all, thanks for providing a valuable service. I guess under normal situations your work would go unheralded - when things are going right no one notices. It's only when your car breaks down that you look under the bonnet (hood).
I'm hoping I have found an opportunity to give a little (very little) back.
We in Australia have been taking a keener-than-usual interest in tz stuff with the advent of the Olympic Games. So, naturally, I eventually found myself downloading from your website.
I look after several different platforms (Solaris, Linux, AIX, HP-UX, IRIX, etc). It soon became clear to me that something was missing. I felt that, it's all very well to make changes to the timezone database; how do I test that the changes will work? And there's the rub. It's not the time now that is at issue. One can immediately confirm that the time right now is correct. What I want to know is, Will it be correct at some time in the future?
To address this issue, I have written a little utility, cvt_time. I enclose source, Makefile and man page. I have chosen to store it in the 'misc' subdirectory of the 'src' directory. It is enclosed as a tar, gzip, uuencode. If you think it is worthwhile, please feel free to distribute it or make it available in any way you see fit.
Regards, Henry
begin 660 misc.tar.Z M'YV0;=+,&?,"@,"!,J7,BPH<.'$",BA !HP;-V H$@Q!HT:&SG"B"$C MI,B3&V]XG&'#1@V,,T*2K"$C!@"0$G/JW,FS9YTY=,+("8FFC!LY><[T7 @T MC!DS2Q>*E/'2),>84;-JW<JU:]> U^,L4/G"YTT;<JX&..UK=N-,2BVU"C2 M(\B3)*URC':LJ5+6O$F'%#)@T:-VAL?,NX\<*?08=2+'HT:=>F3[U.K7H2 M!E;'H$.+;OM"!8BQ9<^F70NBQ>DW;NR4D4,'Q)PR8V"3F6,[C9LQ94"4@?-F M#!H0=-Z 8%,\#!OD:(.#F$Z].@@5+Q0H**W@.@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#&:Y;!T"ZR$(RN $(1J*#&N2@T'*6 4?X[.<Z %K0,)"!#B@R:1B 0-$4 MF>Z>J6O=("@H/6$.U)@Y#63'!F?-;7ZSH>6,ZCK?.<][GD*?6^3H2T,Z!HA& M]*47+>M&/WK0,ZATI7>=:05DX:PL(O)RQ!B<AY%/11NZ AKF\ZH8UX8*^SJB MC+(,9"IHH0<N8F2,PO ";,]!VU\R]9Q3#6=6T_G-K^XUK7]-:$/K&M-XEO>? M;3UH25.:(L3&LU3W_ 3XS"$$''K#&]; F^"^R=SHIN_,"O:</\'&0BA $*< MQAL<0'.Z:A7!%(H U2 P80I/$('7.NM%'+>H"G-\@A04 )[*C*<\YTG/>@SH M'OC(ASYNL ]^]..#<DDI0#\O$" 1I" &E4<!#^KOA#AG(0QIB$,> A$(1E2B M$Z5H1;06=W"_A((GC+RV#"6JVM?.]K:[_>UPC[O<YT[WNMO][GC/N][WSG>( ! J5H
end
From: Henry Grebler [SMTP:henryg@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 implementation. 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.
] > From: Henry Grebler [SMTP:henryg@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. ] ] 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 It would be nice if you could say $ zdump -y 2000 Australia/Hobart and get the same output, especially if this was clearly documented in zdump(8). __________________________________________________________________________ David Keegel <djk@cyber.com.au> URL: http://www.cyber.com.au/users/djk/ Cybersource P/L: Unix Systems Administration and TCP/IP network management
participants (3)
-
David Keegel -
Olson, Arthur David (NCI) -
Paul Eggert