Re: Y2K

H. Peter Anvin (hpa@transmeta.com)
25 Jun 1998 01:31:09 GMT


Followup to: <03b601bd9f68$7f489400$0901a8c0@uke.ad-hoc.gainesville.fl.us>
By author: "Marsh Ray" <marsh_lin@ad-hoc.gainesville.fl.us>
In newsgroup: linux.dev.kernel
>
> I saw that too, and I thought, "WOW!" a minute that
> has _two_ leap seconds!
>
> No, really, isn't that in error? A normal minute
> would have seconds numbered 0-59, a minute with a
> leap second would go 0-60, why does tm_sec need
> to go to 61?
>
> glibc-2.0.6/time/strptime.c seems to accept seconds
> from 0 to 61 as well.
>

This is a bug in some old standard. And yes, it is a bug. The second
range in a minute with a leap second is:

0 <= second < 61

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu