[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting clock_gettime() with CLOCK_TAI to give the right answer



On Thu, Mar 16, 2017, at 08:09, Edmund Grimley Evans wrote:
> What's the easiest way of getting a Debian system to know about the
> offset between TAI and UTC?
> 
> Presumably something like what's described here for SUSE would work:
> 
> https://superuser.com/questions/1156693/is-there-a-way-of-getting-correct-clock-tai-on-linux

Yes, it looks like it would work just fine provided the kernel and ntp
have the required functionality (the superuser answer do not state the
ntp daemon version required).  It should be easy enough for you to test
this, though: it looks rather safe.

> Ideally it would just work out of the box with no special
> configuration but being able to fix it with an "apt-get install
> ntp-something" would be nearly as good.

Someone who is interested in the functionality would need to research
and document the implications of enabling this, and file a bug
requesting the feature against the relevant packages... hint ;-)

FWIW, I agree that we should provide it enabled by default in ntp if at
all possible.  And the fact that the Linux kernel even returns something
other than an error when queried for an uninitialized TAI clock (thus it
will return anything but TAI time), is quite a bug (one that might even
be required behavior by POSIX _or_ be the lesser evil for all I know,
but still...).

-- 
  Henrique de Moraes Holschuh <hmh@debian.org>


Reply to: