[LEAPSECS] 'right' zone in tzdata on Linux

Henry Hallam henry at pericynthion.org
Mon Jun 22 17:03:03 EDT 2015


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?

Thanks for any suggestions,
Henry


More information about the LEAPSECS mailing list