From: L.G. (stern@amath.washington.edu)
Date: 04/19/93


From: stern@amath.washington.edu (L.G. "Ted" Stern)
Subject: Re: How to get correct timezone offset?
Date: 19 Apr 1993 16:43:24 GMT

In article <1qtndo$2pu@news.cs.tu-berlin.de>, wong@cs.tu-berlin.de (Wolfgang Jung) writes:
|> Eugene Crosser (crosser@pccross.msk.su) wrote:
|> : In Linux in the is no 'altzone' external variable, and no tm_tzadj
|> : element in 'struct tm' structure. So, I see no regular way to find
|> : current difference between local time and GMT. I don't count the idea
|> : of computing difference between outputs of gmtime() and localtime()
|> : calls...
|>
|> : So, the question is: how to find the current timezone offset (with
|> : respect to possible daylight savings) from a C program?
|>
|> Maybe you should use the timezone Packages (also on SLS)
|> This should help.. (Someone has to add the manpages for this..., they are
|> missing :-((( )
|>
|> Gruss
|> Wolfgang
|>

In the /usr/zoneinfo (or is it /usr/lib/zoneinfo? use 'find') directory on my
installation of SLS (3/21/93), there is a 'time.doc' file that gives necessary
explanations for using the utility.

-- 
 ===========================================================================
  L.G. 'Ted' Stern    ---          |  The scientific method enables ordinary
  stern@amath.washington.edu       |  people to do extraordinary things.    
  stern%tango@orville.nas.nasa.gov |                       -- Francis Bacon.
 ===========================================================================