* Timezone and Daylight Time Question
@ 1994-10-03 22:25 Stephen Reagan
1994-10-04 8:10 ` Michael Salmon
1994-10-04 15:16 ` Will Morse
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Reagan @ 1994-10-03 22:25 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timezone and Daylight Time Question
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
1 sibling, 1 reply; 4+ messages in thread
From: Michael Salmon @ 1994-10-04 8:10 UTC (permalink / raw)
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.
--
Michael Salmon
#include <standard.disclaimer>
#include <witty.saying>
#include <fancy.pseudo.graphics>
Ericsson Telecom AB
Stockholm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timezone and Daylight Time Question
1994-10-03 22:25 Timezone and Daylight Time Question Stephen Reagan
1994-10-04 8:10 ` Michael Salmon
@ 1994-10-04 15:16 ` Will Morse
1 sibling, 0 replies; 4+ messages in thread
From: Will Morse @ 1994-10-04 15:16 UTC (permalink / raw)
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 !
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timezone and Daylight Time Question
1994-10-04 8:10 ` Michael Salmon
@ 1994-10-04 15:58 ` Casper H.S. Dik
0 siblings, 0 replies; 4+ messages in thread
From: Casper H.S. Dik @ 1994-10-04 15:58 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-10-04 15:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox