EDT settings on 3xxx series

Vernon Schryver vjs at rhyolite.SGI.COM
Thu Apr 6 03:18:31 AEST 1989


In article <7587 at phoenix.Princeton.EDU>, djlinse at phoenix.Princeton.EDU (Dennis Linse) writes:
> 
> ...  Where is the code that
> magically changes for standard time to daylight savings time.
>
> djlinse at phoenix.princeton.edu

The old ctime(3) code has a compiled-in table.

There is at least two more or less public domain versions of ctime(3) which
use various methods to convert time to an ASCII string, including worrying
about timezones and daylight savings.  You could write your own.  That will
not help very much on a [123]000 unless you have the source to things such as
ls(1), date(1), sendmail, [mM]ail, and csh(1), all of which are linked with
the previous version of ctime.

At least the SVR3.2 based 4D's have the new style TZ environment variable,
which lets you set things to your government's heart's content.

(Guy Harris has reminded me that it was always the TZ environment
variable.  Only the file name changed in SVR3.)

Vernon Schryver
Silicon Graphics
vjs at sgi.com



More information about the Comp.sys.sgi mailing list