From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,2626bd3914d3be11 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,2626bd3914d3be11 X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,2626bd3914d3be11 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-04 09:21:21 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!EU.net!sun4nl!fwi.uva.nl!not-for-mail From: casper@fwi.uva.nl (Casper H.S. Dik) Newsgroups: comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer Subject: Re: Timezone and Daylight Time Question Date: 4 Oct 1994 16:58:50 +0100 Organization: FWI, University of Amsterdam Distribution: world Message-ID: <36ru3q$p7t@mail.fwi.uva.nl> References: <36q0d4$sao@news1.shell> <36r2lg$kdv@erinews.ericsson.se> NNTP-Posting-Host: mail.fwi.uva.nl Xref: bga.com comp.unix.osf.osf1:3860 comp.unix.questions:14296 comp.unix.programmer:7728 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