home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume4 / settz / northamerica < prev    next >
Text File  |  1986-11-30  |  3KB  |  100 lines

  1. # @(#)northamerica    2.1
  2.  
  3. # Bob Devine has written that ". . .your table is wrong for MostNA in 1974.
  4. # The correct ending date is 10/27 not 11/24."  Yet on a 4.1bsd VAX/11-750
  5. # system, compiling and executing the program
  6. #
  7. #    #include "time.h"
  8. #
  9. #    long l = 152592000;
  10. #
  11. #    main() {
  12. #        struct tm *    tmp;
  13. #
  14. #        tmp = localtime(&l);
  15. #        printf("%s", asctime(tmp));
  16. #        printf("isdst: %d\n", tmp->tm_isdst);
  17. #    }
  18. #
  19. # results in the output
  20. #
  21. #    Fri Nov  1 22:40:00 1974
  22. #    isdst: 1
  23. #
  24. # For now we'll stay with 4.1bsd's version.
  25. #
  26. # Note also this from munnari!kre:
  27. # "I recall also being told by someone once that Canada didn't have
  28. # the DST variations in 74/75 that the US did, but I am not nearly
  29. # sure enough of this to add anything."
  30.  
  31. # Before the Uniform Time Act of 1966 took effect in 1967, observance of
  32. # Daylight Saving Time in the US was by local option, except during wartime.
  33.  
  34. # Rule    NAME    FROM    TO    TYPE    IN    ON    AT    SAVE    LETTER/S
  35. Rule    MostNA    1918    1919    -    Mar    lastSun    2:00    1:00    D
  36. Rule    MostNA    1918    1919    -    Oct    lastSun    2:00    0    S
  37. Rule    MostNA    1942    only    -    Feb    9    2:00    1:00    W # War
  38. Rule    MostNA    1945    only    -    Sep    30    2:00    0    S
  39. Rule    MostNA    1967    1973    -    Apr    lastSun    2:00    1:00    D
  40. Rule    MostNA    1967    1973    -    Oct    lastSun    2:00    0    S
  41. Rule    MostNA    1974    only    -    Jan    6    2:00    1:00    D
  42. Rule    MostNA    1974    only    -    Nov    24    2:00    0    S
  43. Rule    MostNA    1975    only    -    Feb    23    2:00    1:00    D
  44. Rule    MostNA    1975    only    -    Oct    26    2:00    0    S
  45. Rule    MostNA    1976    2037    -    Apr    lastSun    2:00    1:00    D
  46. Rule    MostNA    1976    2037    -    Oct    lastSun    2:00    0    S
  47.  
  48. ###############################################################################
  49.  
  50. # New names
  51.  
  52. # Zone    NAME        GMTOFF    RULES    FORMAT
  53. Zone    Atlantic    -4:00    MostNA    A%sT
  54. Zone    Eastern        -5:00    MostNA    E%sT
  55. Zone    Central        -6:00    MostNA    C%sT
  56. Zone    Mountain    -7:00    MostNA    M%sT
  57. Zone    Pacific        -8:00    MostNA    P%sT
  58. Zone    Yukon        -9:00    MostNA    Y%sT
  59. Zone    Aleutian    -10:00    MostNA    A%sT
  60. Zone    Newfoundland    -3:30    -    NST    # Is DST now observed here?
  61.                         # If so, when did it start?
  62.  
  63. # Old names
  64.  
  65. # Link    LINK-FROM    LINK-TO
  66. Link    Eastern        EST5EDT
  67. Link    Central        CST6CDT
  68. Link    Mountain    MST7MDT
  69. Link    Pacific        PST8PDT
  70.  
  71. # Nonstandard mainland areas:
  72.  
  73. Rule    SomeUS    1918    1919    -    Mar    lastSun    2:00    1:00    D
  74. Rule    SomeUS    1918    1919    -    Oct    lastSun    2:00    0    S
  75. Rule    SomeUS    1942    only    -    Feb    9    2:00    1:00    W # War
  76. Rule    SomeUS    1945    only    -    Sep    30    2:00    0    S
  77.  
  78. Zone    East-Indiana    -5:00    SomeUS    E%sT # Usually standard near South Bend
  79. Zone    Arizona        -7:00    SomeUS    M%sT # Usually standard in Arizona
  80.  
  81. # And then there's Hawaii.
  82. # DST was observed for one day in 1933.
  83. # Standard time was change by half an hour in 1947; this accounts for
  84. # the half-hour offsets before then, and the peculiar first rule.
  85. # (An alternative is to have "Zone Hawaiian -10:30..." with a
  86. # current standard offset of 0:30; this seems a bit more obscure.)
  87. #
  88. # Things have been calm since 1947.
  89.  
  90. Rule    Hawaii    1901    only    -    Dec    14    0:00    -0:30    S
  91. Rule    Hawaii    1918    1919    -    Mar    lastSun    2:00    0:30    D
  92. Rule    Hawaii    1918    1919    -    Oct    lastSun    2:00    -0:30    S
  93. Rule    Hawaii    1933    only    -    Apr    30    2:00    0:30    D
  94. Rule    Hawaii    1933    only    -    May    1    2:00    -0:30    S
  95. Rule    Hawaii    1942    only    -    Feb    9    2:00    0:30    W # War
  96. Rule    Hawaii    1945    only    -    Sep    30    2:00    -0:30    S
  97. Rule    Hawaii    1947    only    -    Jun    8    2:00    0    S
  98.  
  99. Zone    Hawaiian    -10:00    Hawaii    H%sT
  100.