Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!vjs@rhyolite.SGI.COM From: vjs@rhyolite.SGI.COM (Vernon Schryver) Newsgroups: comp.sys.sgi Subject: Re: EDT settings on 3xxx series Summary: you need the source Message-ID: <30062@sgi.SGI.COM> Date: 5 Apr 89 17:18:31 GMT References: <8904041707.AA02529@aero4.larc.nasa.gov> <29974@sgi.SGI.COM> <7587@phoenix.Princeton.EDU> Sender: daemon@sgi.SGI.COM Distribution: usa Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 25 In article <7587@phoenix.Princeton.EDU>, djlinse@phoenix.Princeton.EDU (Dennis Linse) writes: > > ... Where is the code that > magically changes for standard time to daylight savings time. > > djlinse@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@sgi.com