Re: problem with sntpclock

Alex Stevens <[email protected]> Tue, 9 Jul 2002 19:27:23 -0500
Newsgroups gmane.comp.lib.libtai
Message-ID <[email protected]>
On Wed, Jul 10, 2002 at 12:03:43AM +0001, Thorsten Glaser wrote:
> begin  electrogrammati illius Alex Stevens
> 
> >UTC is the legal time for everyone.
> 
> But you don't use it?

Of course I do. And by the way, don't email me directly, I'm subscribed
to the list.

> 
> >I had this problem too when I first tried libtai. The test computer ran
> >22 secs different from UTC. When I removed /etc/leapseconds.dat, the
> >problem went away.
> 
> Then you don't have UTC any longer. Then you have POSIXly broken
> so-called UTC. Change your timezone link to something in
> /usr/share/zoneinfo/right/ instead AND PUT THE LEAPSECONDS FILE BACK.

Yes I do use UTC. It's you who are confused.

In point of fact, I get the time from satellites, using an M12 board. So
up to 12 satellites are telling me UTC. 

I'm thinking of using libtai to sync other computers to that time on the
network. It's fast, it's easy to write a short script to to set
clockspeed/adjust, and it does an adequate job.

Don't tell me what to do. I did try using the zoneinfo/right, and strace
showed that sntpclock did in fact use /etc/leapseconds.dat. Still, the
time was out by 22 seconds. Check the archives and read the thread, if
you want.

So yes, I do know what UTC is and I'm using it. The test machine agrees
with the machine getting GPS time, and also with the other boxes synced
to it.

I can't explain why I couldn't get libtai to work with right zones and
/etc/leapseconds, but there it is.

How do you know that the time you're using is in fact correct?


-- 
__________________
[email protected]
------------------

"Yeah, I'm drunk all right, and you're crazy. Tomorrow I'll
be sober, but you'll still be crazy for the rest of your life."
-W.C. Fields