Re: clockspeed and system time
Luca Morettoni <[email protected]> Fri, 21 Jan 2005 08:26:18 +0100
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jan 20, 2005 at 08:26:24PM -0500, Paul Jarc wrote: > Use of a right/ timezone should correspond with the existence of > /etc/leapsecs.dat. If you have /etc/leapsecs.dat, then clockspeed > will give you a TAI clock, and you should use a right/ timezone to > properly interpret the results of time(). If you don't have > /etc/leapsecs.dat, then clockspeed will give you a POSIX clock (and it > will get confused if a leap second happens), and you should use a > non-right/ timezone to properly interpret time(). > > If you use right/ but don't have /etc/leapsecs.dat, or vice versa, > then you're inconsistent and you'll see a 22 second offset one way or > the other. I have set my "right" timezone file (Europe/Rome), and I have compiled (with zic) that timezone file with the FreeBSD LEAPSECOND flag (suggested in http://www.freshports.org/sysutils/clockspeed/) but this generate my problem! after that i removed the leapsecs.dat file and I have recompiled timezone file without LEAPSECOND flag, and now all seem ok: (sntpclock 209.51.161.238 | clockview ; date) | mail -s date? luca@home ================================================= Date: 21 Jan 2005 07:18:47 -0000 From: [email protected] To: [email protected] Subject: date? before: 2005-01-21 08:18:47.336649000000000000 after: 2005-01-21 08:18:46.959153499904081225 Fri Jan 21 08:18:47 CET 2005 ================================================= thanks to all! -- Luca Morettoni <[email protected]> - http://morettoni.net G.U.F.I. staff member <[email protected]> - http://gufi.org GPG keys available at: http://morettoni.net/key/ Current system: FreeBSD 5.3-STABLE, up 1 day, 17 hrs, 27 mins, 50 secs
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkHwrpoACgkQtR5mT9aUEbtmnACfeW19RKzAB1mqVdNeh3CD2F8M XSkAn30BxND3TpKzHRqCDrC42uyDS0Tg =ltXw -----END PGP SIGNATURE-----