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