Subject: Re: TIMEZONE and DST - obsolete?
To: None <firstname.lastname@example.org>
From: Gordon W. Ross <email@example.com>
Date: 03/04/1996 12:00:30
> From: Paul Kranenburg <firstname.lastname@example.org>
> Date: Sun, 3 Mar 1996 00:54:33 +0100 (MET)
> > Following it through the system, only sys_settimeofday and sys_gettimeofday
> > in kern_time.c seem to use the tz variable that holds their values, and I
> > guess it only makes a difference if the time of day is gotten before it gets
> > setten.. I can't quite work that out though (I thought it was all done in
> > /etc/localtime but that might come later)
> It is obsolete. All userland utilities should use `/etc/localtime' (see
> ctime(3) et.al.). [gs]ettimeofday(2) also warns that the `struct timezone'
> argument is no longer used. The kernel still maintains some degree of
> compatibility, but, as you note, no sane kernel configuration file actually
> specifies its geographical whereabouts, the information might not be
> I guess it's time to make the kernel config options entirely optional.
Doesn't the kernel use TIMEZONE when reading the hardware clock?
This would let you (for example) keep the hardware clock set to
local time on a PC without the kernel assuming it was GMT.