> On Jun 22, 2015, at 3:03 PM, Henry Hallam <[email protected]> wrote: > > Dear leapers, > > I'm trying to write a shell script, to be run on an ordinary Debian > Jessie system, which needs to know the current TAI time. +/- 1 second > is fine. > > I was under the impression that > > TZ='right/UTC' date > > would return the TAI. However, it appears to be out by one minute: > > $ TZ='right/UTC' date; date -u > Mon Jun 22 21:00:29 UTC 2015 > Mon Jun 22 21:00:54 UTC 2015 > > I would expect the first line to instead be > > Mon Jun 22 21:01:29 UTC 2015 > > Am I using the 'right' timezone incorrectly, missing something else, > or is there an error in the TZ database?
That looks almost right to me. The first line should be lagging by TAI-UTC difference. That’s currently 35, not 25, but 10s is the delta at the dawn of the leap-second era. On a ‘right’ system the system time is set to TAI, and date -u gives back the system time without any timezone adjustment, no? Warner
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ LEAPSECS mailing list [email protected] https://pairlist6.pair.net/mailman/listinfo/leapsecs
