Daylight Saving Time

Ian Donaldson rcodi at Unison6.OZ
Fri Apr 4 13:06:05 AEST 1986


> The current version (USG at least) of localtime in UNIX
> allows you to set whether a time zome has Daylight Saving Time, but
> no obvious method of changing the days on which DST takes effect.
> 
Thats not the only problem - how do you cater for timezones that aren't
a multiple of 1 hour distance from GMT?

The TZ variable allows saying  TZ=xxxyzzz  where xxx is the normal
name of the timezone (without DST), y is the number of HOURS from GMT
(that has to be changed in heaps of shellscripts when daylight savings
starts and ends), and zzz is the name of the timezone when DST is in effect.
 
I rekon that the BSD way of keeping the timezone info in the kernel is more
sensible, as it guarantees uniformity for all processes in the system.  Perhaps
a cron script particular to each machines' timezone can be used to alter
DST at appropriate times of the year for those countries that seem
to keep changing DST (by adb'ing the kernel? - Yuk!)

~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
			    Ian Donaldson

ACSnet: rcodi at Unison6            UUCP: ...!siesmo!munnari!Unison6.rmit.oz!rcodi
CSNET:	rcodi at Unison6.rmit.oz    ARPA: rcodi%Unison6.rmit.oz at seismo
BITNET:	rcodi%Unison6.rmit.oz at CSNET-RELAY 
VOICE:  (03) 660-2619,  1pm-11:59pm weekdays
PAPER:   c/o Digital Systems and Computer Engineering,
	 Dept of Communication & Electronic Engineering,
	 Royal Melbourne Institute of Technology,
	 Latrobe St, Melbourne, 3000, Australia

~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~



More information about the Comp.unix.wizards mailing list