On Tue, Apr 04, 2006 at 08:29:45AM -0400, Ken Murchison wrote: > Its entirely possible that the current code is taking advantage of a > "feature" of Linux which is not intended to be exposed to the user.
>From 'man timezone': The tzset() function initializes the tzname variable from the TZ environment variable. This function is automatically called by the other time conversion functions that depend on the time zone. In a SysV-like environment it will also set the variables timezone (seconds West of GMT) and daylight (0 if this time zone does not have any daylight savings time rules, non-zero if there is a time during the year when daylight savings time applies). [...] CONFORMING TO SVID 3, POSIX, 4.3BSD NOTES [...] 4.3BSD had a function char *timezone(zone, dst) that returned the name of the time zone correā sponding to its first argument (minutes West of GMT). If the second argument was 0, the standard name was used, otherwise the daylight savings time version. SUSv3 has the same description as Linux, so only BSDs are different. Gabor -- --------------------------------------------------------- MTA SZTAKI Computer and Automation Research Institute Hungarian Academy of Sciences --------------------------------------------------------- ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html