Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-vgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!brl-vgr!gwyn From: gwyn@brl-vgr.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards,net.bugs.usg Subject: Re: TZ Rationalization Requested Message-ID: <2359@brl-vgr.ARPA> Date: Sat, 10-Mar-84 21:46:37 EST Article-I.D.: brl-vgr.2359 Posted: Sat Mar 10 21:46:37 1984 Date-Received: Sun, 11-Mar-84 06:55:45 EST References: <341@dual.UUCP>, <1795@rlgvax.UUCP> Organization: Ballistics Research Lab Lines: 17 ? I thought the convention on USG UNIXes was to set TZ in one of the rc files so that it would be in everyone's environment. I don't know why Berkeley didn't make the timezone offset returned by gettimeofday() be in seconds instead of minutes (minor quibble). Note to recipients of the BRL UNIX System V emulation for 4.2BSD: John Quarterman pointed out the consquences of a lack of TZ in 4.2BSD users' environments, and I have fixed ctime.c/tzset() to get the zone from the kernel via _gettimeofday() if TZ is not in the environment. This is a simple patch, but let me know if you need the updated source. MY complaint about all this is that the Berkeley kernel does not supply the timezone name (CST, CDT, etc.). Otherwise their system call seems like$!good idea, provided that TZ in the environment is allowed to override the system timezone for those rare cases where that is useful.