Re: clockspeed and system time
[email protected] (Paul Jarc) Thu, 20 Jan 2005 20:26:24 -0500
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Lloyd Zusman <[email protected]> wrote: > Therefore, it appears that I don't need the "right" settings in order > for my system times to always show up correctly. How could this be? 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. paul