Re: ntpdate and sntpclock/clockview disagree

[email protected] (Paul Jarc) Tue, 29 Mar 2005 01:48:12 -0500
Newsgroups gmane.comp.lib.libtai
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
brian <[email protected]> wrote:
> It looks to me as if I show I'm pretty closely ntp synced, but then
> sntpclock and clockview tell me I'm the better part of a minute off.

22 seconds, actually.  This is the number of leap seconds since
1970-01-01.  POSIX specifies that your clock should count only
non-leap seconds, but clockspeed typically assumes your clock will
count both leap and non-leap seconds.
<URL:http://cr.yp.to/proto/utctai.html>

To have a smoothly-moving clock, counting all seconds, make sure you
have /etc/leapsecs.dat (it looks like you have it) and use a timezone
like right/US/Central instead of US/Central.  I don't know whether
ntpdate would understand what's going on, but most other things
should.

To have a POSIX clock, remove /etc/leapsecs.dat, use a non-right/
timezone, and restart clockspeed after every leap second.


paul