Re: Is 'right' wrong?
[email protected] (Paul Jarc) Sun, 23 Jan 2005 02:47:08 -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: > I know they are two different kinds. But I _want_ my human-readable > string to be the same as my system clock. But that isn't meaningful. The integer 1106464884 is not the same as the string "Sun Jan 23 02:21:02 2005", though they refer to the same time on my computer. No integer is the same as any string. > I _want_ it to be 22 seconds (currently) later than the > human-readable values that most people see. Ah, so you want your clock to gradually go out of sync with the sun. Then remove /etc/leapsecs.dat for the sake of libtai's conversion functions, use a non-right time zone for the sake of localtime(), and feed your clockspeed with taiclock instead of sntplock, so your clock will count both leap and non-leap seconds even without /etc/leapsecs.dat. paul