Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!barmar From: barmar@mit-eddie.UUCP (Barry Margolin) Newsgroups: net.lang.c Subject: Re: Daylight Savings Time Message-ID: <641@mit-eddie.UUCP> Date: Fri, 6-Dec-85 03:11:25 EST Article-I.D.: mit-eddi.641 Posted: Fri Dec 6 03:11:25 1985 Date-Received: Sat, 7-Dec-85 04:30:11 EST References: <124@brl-tgr.ARPA> <1727@uw-beaver> <1679@hammer.UUCP> Reply-To: barmar@mit-eddie.UUCP (Barry Margolin) Organization: MIT, Cambridge, MA Lines: 38 In article <1679@hammer.UUCP> seifert@hammer.UUCP (Snoopy) writes: >In article <1727@uw-beaver> golde@uw-beaver.UUCP (Helmut golde) writes: > >> I am unclear as to why *any* application program would ever want to know >> whether daylight savings time is in effect or not. > >Example: date(1) needs to know. Typical output from date: > >Mon Dec 2 14:30:03 PST 1985 > ^^^ > >Date needs to know if it is dst or not for printing out the date, >and also for setting the date, since it has to convert the >time given by root from local time to GMT before calling >settimeofday(2). All that is required in order to do this is the name of the current time zone and the difference between it and GMT. The system doesn't need to know the special relationship between PST and PDT; as far as it need be concerned these are just arbitrary names for GMT-8hours and GMT-7hours (or maybe it is vice-versa). The above comments are based on a Unix bias. On Multics, the date/time conversion software includes a table listing many of the world's time zone names (in several languages, no less), along with the corresponding difference from GMT. The site can specify any of the zones as the system default, and a user can choose any as his default for the login session. When entering times, one may specify a time zone explicitly, and when printing out times one can ask that it be printed out in any recognized time zone. No special understanding of Daylight Savings Time exists -- the system administrators merely change the default time zone twice a year (if necessary -- our primary exposure system is in Arizona, which doesn't use DST). Many of our customers are outside the US, so hardcoding our DST rules would have been a nightmare. -- Barry Margolin ARPA: barmar@MIT-Multics UUCP: ..!genrad!mit-eddie!barmar