home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.28 / text0004.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.3 KB  |  30 lines

  1. Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
  2.  
  3. >Submitted-by: robc@rocket.sanders.lockheed.com (Rob Costantino)
  4. >... does anyone know what the formula or rules are to
  5. >calculate when daylight savings time begins and ends in
  6. >a given year?
  7.  
  8. It is impossible to answer this without knowing the location; daylight-
  9. saving algorithms vary greatly from one country to another, and sometimes
  10. within countries.  (For example, where I grew up, the algorithm is
  11. null -- Saskatoon runs on Central Standard Time year-round.)  They also
  12. tend to change over time, due to the vagaries of politicians.  And don't
  13. forget that some places, at some times (e.g. WW2), have had double DST.
  14.  
  15. If you're writing software that will be used by other people, you *must*
  16. make the algorithm easy to change.
  17.  
  18. Arthur Olsen's code, published quite some time ago on one of the Usenet
  19. source newsgroups, should be available from any major archive site (try
  20. ftp.uu.net if you don't know a closer one).  It reads a complex table
  21. from a file, and suitable changes to the file can cope with almost all
  22. known variations.
  23. -- 
  24. I'd rather have a network file          | Henry Spencer @ U of Toronto Zoology
  25. system than NFS.  -Geoff Collyer        |  henry@zoo.toronto.edu  utzoo!henry
  26.  
  27.  
  28. Volume-Number: Volume 28, Number 5
  29.  
  30.