Fwd: lsclocks and tai

Sami Kerola <[email protected]> Tue, 4 Nov 2025 13:58:35 +0000
Newsgroups org.kernel.vger.util-linux
Message-ID <CAG27Bk33x9ztXSX7AJb_=5QVJRY3ir0ZppMSOgVUS0XnagrvFw@mail.gmail.com>
Hello Karel and other,

It's been a while since I have been active with util-linux. Everything
is ok, just work & life keeps me busy. Perhaps someday in future
things change (when retiring and there's more time for fun).

Meanwhile. There was a workplace discussion about TAI and I noticed
unexpected lsclock.

$ lsclocks -o ISO_TIME,NAME | grep tai && TZ=right/UTC date --iso=ns
2025-11-04T13:58:14.176151344+00:00 tai
2025-11-04T13:57:47,177638531+00:00

One would hope above timings always match. If I force the timezone for
the lsclock output will match, but this has downside of all the other
listings use TAI zone.

$ TZ=right/UTC lsclocks -o ISO_TIME,NAME | grep tai && TZ=right/UTC
date --iso=ns

Perhaps the realtime outputs to use local time, and TAI to be always
right/UTC. Any thoughts?

-- 
Sami Kerola
https://kerolasa.iki.fi/