Hi, Unless I'm missing some of the data files, the only rule TYPE ever used is "-" The man page states: TYPE Gives the type of year in which the rule applies. If TYPE is - then the rule applies in all years between FROM and TO inclusive. If TYPE is something else, then zic executes the command yearistype year type to check the type of a year: an exit status of zero is taken to mean that the year is of the given type; an exit status of one is taken to mean that the year is not of the given type. What other types except for "-" are allowed? Parsed files: africa, antarctica, asia, australasia, backward, europe, northamerica, pacificnew, solar87, solar88, solar89, southamerica, Systemv
The "pacificnew" file includes rules with type "uspres" and "nonuspres" to reflect a proposal that would have extended daylight savings time in the US Pacific zone to the Sunday following Election Day in Presidential election years (same as Summer Olympic years). This would be combined with a uniform poll-closing time (within the 48 contiguous states and DC) of 21:00 EST, 20:00 CST, 19:00 MST, and 19:00 PDT. However, since that law was never adopted, the zone in question is commented out, so would not appear in a parsed file. (If that file is to be retained, it needs to be tweaked anyway, so that the regular rules in it follow the new US style--unless it was already done.) -----Original Message----- From: Srdjan Krajnalic [mailto:ludiskr@yahoo.com] Sent: Fri 21 July 2006 08:51 To: tz@lecserver.nci.nih.gov; tz@lecserver.nci.nih.gov Subject: The RULE TYPE column Hi, Unless I'm missing some of the data files, the only rule TYPE ever used is "-" The man page states: TYPE Gives the type of year in which the rule applies. If TYPE is - then the rule applies in all years between FROM and TO inclusive. If TYPE is something else, then zic executes the command yearistype year type to check the type of a year: an exit status of zero is taken to mean that the year is of the given type; an exit status of one is taken to mean that the year is not of the given type. What other types except for "-" are allowed? Parsed files: africa, antarctica, asia, australasia, backward, europe, northamerica, pacificnew, solar87, solar88, solar89, southamerica, Systemv
On Fri, Jul 21, 2006 at 02:50:57PM +0200, Srdjan Krajnalic wrote:
Hi,
Unless I'm missing some of the data files, the only rule TYPE ever used is "-"
You can find yearistype.sh in tzdata, which defines what TYPEs are supported. Currently they are: even odd uspres nonpres/nonuspres. The even/odd types were used in South Australia, which used to look like this (snippet taken from tzdata96a.tar.gz): # South Australia # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule AS 1971 1985 - Oct lastSun 2:00s 1:00 - Rule AS 1986 only - Oct 19 2:00s 1:00 - Rule AS 1987 max - Oct lastSun 2:00s 1:00 - Rule AS 1972 only - Feb 27 2:00s 0 - Rule AS 1973 1985 - Mar Sun>=1 2:00s 0 - Rule AS 1986 1989 - Mar Sun>=15 2:00s 0 - Rule AS 1990 1994 even Mar Sun>=18 2:00s 0 - Rule AS 1990 1994 odd Mar Sun>=1 2:00s 0 - Rule AS 1995 max - Mar lastSun 2:00s 0 - The underlying reason for even/odd usage in this rule is that the Adelaide Festival of the Arts is in March of even years since 1960. http://www.adelaidefestival.com.au/ Since there were only 5 years of this even/odd algorithm (and it is not expected to reappear in future), it was decided to just hard code the dates for those 5 years, so that yearistype would not be required for this rule. While the TZ database does not currently use year types, it is always possible that some juridiction in the world will decide to have daylight saving rules which are different every 2 years, or every 4 years, or some other scheme that will require extending yearistype. ___________________________________________________________________________ David Keegel <djk@cybersource.com.au> http://www.cyber.com.au/users/djk/ Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting
participants (3)
-
Andy Lipscomb -
David Keegel -
Srdjan Krajnalic