Re: Is 'right' wrong?
Lloyd Zusman <[email protected]> Sun, 23 Jan 2005 09:47:51 -0500
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Message-ID | <[email protected]> |
[email protected] (Paul Jarc) writes: > 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. Exactly! And if I ever want the clock to go back in sync with the sun again, then I can just put the right/ timezone descriptor back in place. -- Lloyd Zusman [email protected] God bless you.