Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: casper@fwi.uva.nl (Casper H.S. Dik)
Subject: Re: Timezone and Daylight Time Question
Date: 4 Oct 1994 16:58:50 +0100	[thread overview]
Message-ID: <36ru3q$p7t@mail.fwi.uva.nl> (raw)
In-Reply-To: 36r2lg$kdv@erinews.ericsson.se

etxmesa@eos.ericsson.se (Michael Salmon) writes:

>In article <36q0d4$sao@news1.shell>
>sdr@shell.portal.com (Stephen Reagan) writes:
>|> 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?

>The original source is available in the ~ftp/pub directory of
>elsie.nci.nih.gov (128.231.16.1). If you find any info that is
>incorrect send a message to tz@elsie.nci.nih.gov so that they can
>update the data files.

And to answer the other questions: yes other people use it too.
(Sun since SunOS 4.x).  And no, there is no more accurate method.

If the rules change, edit the rule file and recompile.

The timezone directory is the actual source of the timezone/timechange info.
However, you should understand that tehre is no such thing as a "timechange"
from teh OS'es point of view: the OS clock ticks in seconds since
"0:00 Jan 1 1970 GMT".  Whenever you ask the time, this is converted
using the timezone data to your local time.  When daylight savings
time ends, a different conversion rules becomes applicable.  The
clocks seems to jump an hour, but until you look nothing notices.

Casper



  reply	other threads:[~1994-10-04 15:58 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 [this message]
1994-10-04 15:16 ` Will Morse
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