lkml.org 
[lkml]   [2020]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectAdditional interface to kernel timekeeping for leapsecond clarity
Dear all,

I'm writing because I'm interested in adding a system call to linux
and other free operating systems that will return the current time in
a structure that will include a flag for whether or not there is a
leap second when the result is taken. While adjtimex exists, it's a
very heavy interface to this functionality. This is necessary for
computing the Modified Julian Day+microseconds since midnight in
userspace, something of interest for roughtime.

ntp_gettimex doesn't quite do this either: the TAI offset doesn't let
one compute the Modified Julian day without an almanac. To the best of
my knowledge this doesn't exist yet, but I would be happy to be proven
wrong.

Adding this would make it possible to adapt userspace to the harsh
realities of UTC.

Sincerely,
Watson Ladd

\
 
 \ /
  Last update: 2020-02-04 23:32    [W:0.024 / U:5.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site