RE: compile errors on timezone database
Another possibility is to change the spelling of... 24:00 ...to... 23:59:60 ...which works with any version of zic issued 1988 or later. Let's hear it for leap seconds! --ado -----Original Message----- From: tz-request@lecserver.nci.nih.gov [mailto:tz-request@lecserver.nci.nih.gov] On Behalf Of Rodrigo Severo Sent: Wednesday, December 03, 2003 5:58 AM To: 'diane_kledzik@notes.ntrs.com' Cc: Tz (tz@elsie.nci.nih.gov) Subject: Re: compile errors on timezone database Olson, Arthur David (NIH/NCI) wrote:
Back in 1998 zic was tweaked to accept 24:00 in "AT" fields; my guess is that the version of zic being used predates that change. (If the vendor hasn't stripped things and you're on a POSIX system, you can do a... what /path/to/the/executable/zic ...to get a version number; anything under 7.94 lacks the tweak; anything beyond 7.95 has the tweak.)
Mindful of folks with old compilers, it may be best to change the northamerica file to avoid use of 24:00, changing the "lastSat 24:00" references to "lastSun 0:00". (And perhaps using zic should generate warning messages if a 24:00 shows up and zic's -v option has been used.)
Because of the lastSat-might-be-the-last-day-of-the-month issue the Right Thing to be done is to update zic and use the correct zoneinfo definition. Rodrigo Severo -- ---------------------------------------------------- Rodrigo Severo Fábrica de Idéias Fone: +55(61)321 1357 Fax: +55(61)223 1712 SBS - Quadra 2 - Ed. Empire Center - Sala 1301 Brasília/DF - Brasil CEP: 70.070-904 ----------------------------------------------------
Olson, Arthur David (NIH/NCI) wrote:
Another possibility is to change the spelling of... 24:00 ...to... 23:59:60 ...which works with any version of zic issued 1988 or later. Let's hear it for leap seconds!
As the support for the 24:00 notation has been introduced 5 years ago I suggest that anyone with the 24:00-support problem is simply encouraged to update his zic to a >= 7.95 version. My 2 cents, Rodrigo Severo -- ---------------------------------------------------- Rodrigo Severo Fábrica de Idéias Fone: +55(61)321 1357 Fax: +55(61)223 1712 SBS - Quadra 2 - Ed. Empire Center - Sala 1301 Brasília/DF - Brasil CEP: 70.070-904 ----------------------------------------------------
it might be a good idea for the next revision of the database to make a modification to zic to include the handling of a new "expectzicversion" line in the various data files. if we had a switch like this now, each file could contain something like this: # # This file expects a version of zic that is 7.95 or later # if you are running an older version, upgrading is recommended # but you can continue to run with the older version if this # line is removed but some data may not be converted correctly. # expectzicversion 7.95 when I ran with an expectzicversion line added to one of the files (as a test), I got an error message and the program aborted. the advantage to a line like this is that it would encourage people to upgrade zic (thus preventing/correcting many possible problems) and would allow a future change which requires a new zic to work correctly to be very quickly identified. Rodrigo Severo wrote:
Olson, Arthur David (NIH/NCI) wrote:
Another possibility is to change the spelling of... 24:00 ...to... 23:59:60 ...which works with any version of zic issued 1988 or later. Let's hear it for leap seconds!
As the support for the 24:00 notation has been introduced 5 years ago I suggest that anyone with the 24:00-support problem is simply encouraged to update his zic to a >= 7.95 version.
My 2 cents,
Rodrigo Severo
-- ---------------------------------------------------- Rodrigo Severo Fábrica de Idéias Fone: +55(61)321 1357 Fax: +55(61)223 1712 SBS - Quadra 2 - Ed. Empire Center - Sala 1301 Brasília/DF - Brasil CEP: 70.070-904 ----------------------------------------------------
-- Martin Smoot Network Storage Solutions 703-834-2242 msmoot@nssolutions.com www.nssolutions.com
On Wed, 3 Dec 2003, Olson, Arthur David (NIH/NCI) wrote:
Another possibility is to change the spelling of... 24:00 ...to... 23:59:60 ...which works with any version of zic issued 1988 or later. Let's hear it for leap seconds!
Please don't do this. This is a bogus time, because there is no leap second at that time. 24:00 makes a lot more sense. Plus my parsing code already handles it and I don't want to have to make more changes ;) -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
participants (4)
-
Dave Rolsky -
Martin Smoot -
Olson, Arthur David (NIH/NCI) -
Rodrigo Severo