home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v6 / text0036.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  5.6 KB

  1. From: hplabs!hao!vianet!devine@pyramid.UUCP (Bob Devine)
  2. Date: Thu, 24 Jul 86 23:13:44 mdt
  3.  
  4. [ This is really not directly related to IEEE 1003.1, since
  5. it solely discusses the details of an *implementation* and
  6. says nothing about the *interface*.  However, it does
  7. address something which has been previously discussed
  8. in this newsgroup, and I can't think of a better place for it.
  9. However, please do detailed line-by-line discussions of this
  10. through mail among interested parties.
  11.  
  12. Could we find a new topic?
  13. -mod]
  14.  
  15.   Arthur Olson's recent posting to mod.sources included the updated
  16. settz data tables.  This reply in mod.std.unix is to correct some
  17. of the entries in the table and re-raise my points about what is the
  18. best implementation.  I believe everyone has agreed on Robert Elz's
  19. direction for the POSIX document wording.
  20.  
  21.   The lines beginning with "> " are from Arthur Olson.
  22.  
  23. > Bob Devine has written that ". . .your table is wrong for MostNA in 1974.
  24. > The correct ending date is 10/27 not 11/24."  Yet on a 4.1bsd VAX/11-750
  25. > system, compiling and executing the program
  26. > [[[ program omitted ]]]
  27. > results in the output
  28. >    Fri Nov  1 22:40:00 1974
  29. >    isdst: 1
  30. > For now we'll stay with 4.1bsd's version.
  31.  
  32.   The date I gave is correct.  Any version of Unix that uses 11/24 is
  33. simply wrong.  The dates for 1974 and 1975 DST rules are:
  34.       1974   1/6  to 10/27
  35.       1975   2/28 to 10/26
  36.   Even the source for Xenix V that I just checked has it wrong.  Believe
  37. me folks, this comes directly from Dept of Transportation.  (If you are
  38. wondering why DOT has responsibility for such info, drop me a line. BD)
  39.  
  40. > Note also this from munnari!kre:
  41. > "I recall also being told by someone once that Canada didn't have
  42. > the DST variations in 74/75 that the US did, but I am not nearly
  43. > sure enough of this to add anything."
  44. > If Canada or Mexico decide not to follow the US change in DST that takes
  45. > effect in 1987, additions had best be made below.
  46.  
  47. Canada did not follow the fuel follies for '4 and '5.
  48. Please split the rules *by country*, not by continent, to avoid such problems.
  49. The "MostNA" rules listed are incorrect for Canada and Mexico!
  50.  
  51. > Before the Uniform Time Act of 1966 took effect in 1967, observance of
  52. > Daylight Saving Time in the US was by local option, except during wartime.
  53.  
  54.   This is the acid-test of all proposals for handling DST rules.  When I
  55. submitted my suggestion to mod.std-unix last February (that now seems like
  56. the distant past), I used the most common way of representing the changes.
  57. The reason was I had examined all the world-wide rules and after silently
  58. tearing my hair out trying to come up with a small table, decided to
  59. go with the only way that I had any hope of getting right.  To represent
  60. all of the worldwide rules for just +/- 5 years requires several hundred
  61. lines.  No speed would ever be possible for a full table.  My way was to
  62. just represent the current year.  At best, that simple formula would work
  63. for many years; at worst, changes can't be handled (which is why folks
  64. did fall in love with it).
  65.  
  66.   The US tried to standardize DST rules in that '66 Act.  But, of course,
  67. there are still many exceptions.  Plus, checking dates prior to it is
  68. painful.  Now imagine how the US was before 1967 and apply that to the
  69. world.  You get the feeling of near chaos?
  70.  
  71.   I have since come to the conclusion that the best way to represent
  72. DST and timezone information is a single rule plus an "exceptions database".
  73. Only if the simple rule doesn't work (e.g., past or future years, other
  74. timezones) is the database used.  This way, rules can be added as needed.
  75. Or the entire database can be empty with the single rule used for all
  76. conversions.
  77.  
  78.   DST is almost like the (jeez, I forgot who said it) quote about the
  79. universe "being more complicated that can be possibly imagined".
  80. This is not an exact analogy, but, at least physical laws are controlled
  81. by Congress!
  82.  
  83.  
  84. ># Rule    NAME    FROM    TO    TYPE    IN    ON    AT    SAVE    LETTER/S
  85. >Rule    MostNA    1967    1973    -    Apr    lastSun    2:00    1:00    D
  86. >Rule    MostNA    1967    1973    -    Oct    lastSun    2:00    0    S
  87.  
  88. Note: the rules for 1967 - 1973 depend on what state/territory you are in.
  89. For example, Michigan is an exception to the rule for 1969-72 but not for
  90. 1967-68.  Eastern Indiana is another tricky one for this period.  Again,
  91. note that this is *after* the '66 Act that tried to standardize DST.
  92.  
  93. >Rule    MostNA    1974    only    -    Jan    6    2:00    1:00    D
  94. >Rule    MostNA    1974    only    -    Nov    24    2:00    0    S
  95.  
  96. Should be ====>                         Oct     27
  97.  
  98. ># New names
  99. >Zone    Newfoundland    -3:30    -    NST    # Is DST now observed here?
  100.                         ># If so, when did it start?
  101.  
  102. Newfoundland observes DST by the same rules as the rest of Canada -- the
  103. last Sunday in April to the last Sunday in October.  It has followed this
  104. pattern since 1951.  Changeover time is 2am.
  105.  
  106. Saskatchewan is another matter...part in EST; part in CST which doesn't use DST.
  107.  
  108. ># Nonstandard mainland areas:
  109.  
  110. These rules are impossible to formulate.  The amazing variety of
  111. different DST rules makes such a tabularizing absurd.  The rules vary
  112. by state, by regions within states, by areas that have not yet even
  113. been admitted to the union, by county, by city, and seemingly by whim.
  114.  
  115. >Rule    SomeUS    1918    1919    -    Mar    lastSun    2:00    1:00    D
  116. >Rule    SomeUS    1918    1919    -    Oct    lastSun    2:00    0    S
  117. >Rule    SomeUS    1942    only    -    Feb    9    2:00    1:00    W # War
  118. >Rule    SomeUS    1945    only    -    Sep    30    2:00    0    S
  119. >
  120. >Zone    East-Indiana    -5:00    SomeUS    E%sT # Usually standard near South Bend
  121. >Zone    Arizona        -7:00    SomeUS    M%sT # Usually standard in Arizona
  122. >
  123. ># And then there's Hawaii.
  124. >Rule    Hawaii    1947    only    -    Jun    8    2:00    0    S
  125.  
  126. The information I have does not show any DST changes in 1947.  DST was
  127. not observed in the period 1946-present.
  128.  
  129. Bob Devine
  130.  
  131. Volume-Number: Volume 6, Number 37
  132.  
  133.