compile errors on timezone database

Olson, Arthur David (NIH/NCI) olsona at dc37a.nci.nih.gov
Tue Dec 2 21:16:32 UTC 2003


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.)

				--ado

-----Original Message-----
From: Diane Kledzik [mailto:Diane_Kledzik at notes.ntrs.com] 
Sent: Tuesday, December 02, 2003 12:52 PM
To: tz at lecserver.nci.nih.gov
Cc: eggert at twinsun.com
Subject: compile errors on timezone database


As an fyi, I receive compile errors when I compile (using "zic") the time zone database downloaded in the tzdata2003d.tar file from your ftp://elsie.nci.nih.gov/pub/ site.  The error messages read: "northamerica", line 954: invalid time of day "northamerica", line 955: invalid time of day "northamerica", line 978: invalid time of day "northamerica", line 979: invalid time of day

Those lines in the northamerica file are below.  Is it safe to assume I need to change the 24:00 references to 0:00 instead?  Has anyone else run into this problem?

Rule    Mont    1927    1937    -       Apr     lastSat 24:00   1:00    D
Rule    Mont    1927    1937    -       Sep     lastSat 24:00   0       S

Rule    Toronto 1930    1937    -       Apr     lastSat 24:00   1:00    D
Rule    Toronto 1930    1937    -       Sep     lastSat 24:00   0       S

Thanks for your help,
Diane Kledzik



More information about the tz mailing list