Re: Seeking clarifaction of tai64nlocal and leap seconds

"Andy Bradford" <[email protected]> 19 Sep 2012 20:32:42 -0600
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Thus said Russ Allbery on Wed, 19 Sep 2012 14:52:15 PDT:

> Hm. The more I think about it,  the more I'm guessing that's the case:
> that you  only get TAI  timestamps from multilog if  you've configured
> your system  clock to  be in  TAI and  are using  the "right"  tz zone
> files.

I am not using the ``right'' TZ zone files, and yet:

$ date | tai64n | tai64nlocal
2012-09-19 20:20:29.968499500 Wed Sep 19 20:20:29 MDT 2012

$ ls -l /etc/localtime 
lrwxr-xr-x  1 root  wheel  31 Dec 29  2010 /etc/localtime@ -> /usr/share/zoneinfo/US/Mountain

Not  surprising   given  that  the   documentation  does  say   it  uses
gettimeofday(). I  believe the ``right''  zones are only needed  if your
clock is synchronized with a TAI clock. Most clocks are not.

Andy