Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!Makey@logicon.arpa From: Makey@logicon.arpa (Jeff Makey) Newsgroups: net.lang.c Subject: Re: ANSI C. Message-ID: <3508@brl-tgr.ARPA> Date: Fri, 22-Nov-85 19:51:46 EST Article-I.D.: brl-tgr.3508 Posted: Fri Nov 22 19:51:46 1985 Date-Received: Sun, 24-Nov-85 07:06:01 EST Sender: news@brl-tgr.ARPA Lines: 15 The daylight time flag returned by localtime() does NOT have to be provided by the operating system. I looked at the 10-year-old source code on my PDP-11/70 PWB UNIX system (no environment variables) and observed that localtime() *computes* whether or not the date it is processing is between the last Sundays in April and October. The ONLY input to localtime() (it makes no system calls) is a GMT date/time value that is immediately converted to local standard time, then to daylight time if appropriate. There are static variables that are hard-coded to indicate: the difference in hours between GMT and local standard time; and whether or not conversion to daylight time should ever occur (useful throughout most of Indiana, where they are always on eastern standard time). :: Jeff Makey Makey@LOGICON.ARPA