Re: What TZ do you use to get right time w/ clockspeed?
[email protected] (Paul Jarc) Thu, 14 Nov 2002 15:54:18 -0500
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Bennett Todd <[email protected]> wrote: > 2002-11-14-15:03:02 Paul Jarc: >> That, along with making sure /etc/leapsecs.dat is up to date, is all >> you need to do, I think. > > If I may say so without sounding like a drooling idiot, would it be > perhaps appropriate to document this prominently in the neighborhood > of the clockspeed package? I think so. But maybe not all systems have the right/ zones, and systems certainly don't agree on how the initial time zone is configured at boot time. > "Canonical" sounds like a toughie, but for whatever it's worth, the > one in <URL:http://cr.yp.to/clockspeed/clockspeed-0.62.tar.gz> is > identical to the one in <URL:http://cr.yp.to/libtai/leapsecs.dat>, But DJB didn't invent leapsecs.dat; he got it from somewhere else. Ah: I found a "leapseconds" file in the tzdata tarball from <URL:ftp://elsie.nci.nih.gov/pub/>. That's probably it. But how do we compile it into leapsecs.dat? Actually, I'm not sure we even need leapsecs.dat if we're using right/ zones. right/ zones are the ones with leap second information compiled into them. # echo $TZ; date; mv leapsecs.dat{,-}; date; mv leapsecs.dat{-,} right/US/Eastern Thu Nov 14 15:49:54 EST 2002 Thu Nov 14 15:49:54 EST 2002 paul