Re: GPS Leap Second Scheduled!

Theodore Y. Ts'o (tytso@mit.edu)
Thu, 10 Sep 1998 11:05:38 -0400


From: hpa@transmeta.com (H. Peter Anvin)
Date: 10 Sep 1998 01:37:05 GMT
Right. I think the right solution is one I suggested on c.o.l.d.s
recently:

- time_t being a 64-bit signed integer linked to UTC
- struct timespec (and struct timeval, presumably) having an extra
field added:

64-bit seconds field (same as time_t) linked to UTC
32-bit nanosecond field (microsecond for timeval) linked to TAI
32-bit integral TAI-UTC difference

This works, although it would require making a glibc interface change.
But if the ELF symbol versioning works out, perhaps this won't be as big
of an issue.

However, in order to in sync with POSIX.1's definition of how time_t relates to
UTC time, I'd suggest that we make the progression go as follows:

... making the progress go as follows:

tv_sec tv_delta UTC
T-1 N 23:59:59
T N 23:59:60
T N+1 00:00:00
T+1 N+1 00:00:01

(that is, repeat tv_sec == T instead of tv_sec == T-1).

- Ted

-
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