lkml.org 
[lkml]   [1998]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: GPS Leap Second Scheduled!
(...About leap second handling in the Linux kernel...)

On 1 Sep 98, at 11:16, Sven Dietrich wrote:

>
> The GPS control segment has posted a leap second warning for week number
> 990, Day number 5, and thus it's official in GPS world,
> that the leap second will take place 12/31/98...
>
> I am going to run simulations on NTP 3 & 4 and Linux with that GPS almanac.
> Will send bug fixes and patches as needed for the Trimble refclocks and
> NTP...
>
> Linux currently inserts a 2nd 59th second, instead of the UTC model of ...
> 58, 59, 60...

The time in the kernel is seconds since the epoch. To insert a second
means that we'll have to delay the next second for another second.
The other solution seems to be a clib -> kernel interface that knows
that a leap second is active now. Then the clib could possibly
convert the seconds to xx:yy:60. (I hope I did not overlook something
obvious).

> is there any chance we could press a kernel patch through to correctly
> handle the time?

IMHO it's hardly worth the trouble.

Ulrich
P.S: FYI to the linux-kernel list...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.065 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site