Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Daylight Savings Time: how to fix ctime.c Message-ID: <15179@sun.uucp> Date: Tue, 17-Mar-87 14:31:10 EST Article-I.D.: sun.15179 Posted: Tue Mar 17 14:31:10 1987 Date-Received: Thu, 19-Mar-87 01:34:29 EST References: <4992@brl-adm.ARPA> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 24 >The following data structure is useful for determining when daylight >savings time is in effect in the United States. Any future changes >should be simple and efficient. No changes that require you to modify "ctime.c" can possibly be "simple". >P.S. Any requests for complete ctime sources will be forwarded to > /dev/null. They should be forwarded to some "mod.sources" archive, instead. The code developed by Arthur Olson and others reads the rules from a *file*, which means you can change them without recompiling *anything*. The DST tables included therein correctly specify the U.S.A DST rules and the Australian rules (at least the rules as of the last time Robert Elz checked - they seem to be rather subject to change); they include what we think are the correct European rules starting in 1986 or so (if anybody wants to supply rules for earlier years, please do so and send them to Arthur at seismo!elsie!ado), and come close to the correct Canadian rules (except for Saskatchewan, which does not observe DST) assuming they follow the US's lead. (They even include something pretty close to a Solar time table for 1987 in Riyadh, so that old comment in the "ctime" code need no longer apply....)