In message: <[EMAIL PROTECTED]>
            Peter Bunclark <[EMAIL PROTECTED]> writes:
: John Cowan
:         adds:
...
: The upside of Posix is that time arithmetic is simple.  The downside is
: that Posix sometimes lies about elapsed time and labels both a leap second
: and the preceding second with the same time_t.

POSIX lies, but it tells a different lie.  It labels the leap second
as the following second, and then does the following second again.

NTP lies in the manner that John describes, which is inconsistant with
POSIX.  Most systems disciplined by NTP have their system time follow
this convention, so you get weird results with the POSIX time routines
near a leap second.

In summary:

UTC Label       Posix           NTP
23:59:59        ....799         ....799
23:59:60        ....800         ....799
00:00:00        ....800         ....800
00:00:01        ....801         ....801

Warner

Reply via email to