Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: will@Starbase.NeoSoft.COM (Will Morse)
Subject: Re: Timezone and Daylight Time Question
Date: 4 Oct 1994 10:16:02 -0500	[thread overview]
Message-ID: <36rrji$14d@Starbase.NeoSoft.COM> (raw)
In-Reply-To: 36q0d4$sao@news1.shell

In article <36q0d4$sao@news1.shell>,
Stephen Reagan <sdr@shell.portal.com> wrote:
>I need to get information regarding changes between daylight and standard
>times, i.e., when the change occurs and whether it's a change to daylight
>or standard time.  I managed to find some meager information on reading the
>file /etc/zoneinfo/timezone, which allegedly is produced by the zic utility.
>However, I don't feel totally comfortable with this file, either in its
>accuracy or whether there may be any "gotcha's" in trying to read from it.
>(The info I had was the man page for tzfile, but I'm not convinced that this
>information is complete or accurate).  Is this file a reliable source for
>timechange information?  Are there any pitfalls to using/reading it?  Does zic
>really keep it up to date? (I was unable to test this due to constraints on
>changing anything of this nature...).  Does this system of timechange
>information exist outside of DEC OSF/1? (my platform).  Is this even the
>actual source of timechange/timezone information as far as the system is
>concerned?
>
>Sorry for all the questions, but I've been unable to find any reliable info
>so far...
>
>--Steve

The /etc/zoneinfo/timezone is about as accurate as it gets for the 
United States and for places that it gives specific answers.  The problem
is that the rules change from time to time in purely political ways.
There is really no way a program can anticipate the Congress, or even
local administration.  There was a long thread on this somewhere recently,
enough for a book in itself.  There are half timezones in many places
in the world (including my home in Newfoundland), there are differences
in Europe.  There are places (mostly in the middle east) that do not
have daylight time.  Like I say, a book.

This basic system you describ exists throughout BSD based systems.  It is 
very similar to System V based systems.  Of course, we SPARC user's 
would say DEC's clock is ten years behind anyway :-)

Unix system clocks are also prone to drift.  If you are worried about
exact times, you should look into a clock source.

Hope this helps







-- 
#      Gravity,                    #    Will Morse
#      not just a good idea,       #    BHP Petroleum (Americas) Inc.
#              it's the law.       #    Houston, Texas 
#                                  #    will@starbase.neosoft.com
#
#   These are my views and do not necessarly reflect the views of BHP !


      parent reply	other threads:[~1994-10-04 15:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-03 22:25 Timezone and Daylight Time Question Stephen Reagan
1994-10-04  8:10 ` Michael Salmon
1994-10-04 15:58   ` Casper H.S. Dik
1994-10-04 15:16 ` Will Morse [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox