[XML-SIG] Re: [XML-checkins]CVS: xml/xml/utils iso8601.py,1.6,1.7

Martin v. Loewis martin@v.loewis.de
19 Apr 2002 09:31:35 +0200


Alexandre <Alexandre.Fayolle@logilab.fr> writes:

> Now, this may be dumb, since I'm not very familiar with the intricacies
> of real date and time manipulations, but is 60 an allowed value for
> seconds? In other words, should not this read 
> 
> if not 0 <= seconds < 60: 

There is: if you have a leap second (see below for a list of past leap
seconds); they may be a second numbered 60.

Regards,
Martin

# Leap	YEAR	MONTH	DAY	HH:MM:SS	CORR	R/S
Leap	1972	Jun	30	23:59:60	+	S
Leap	1972	Dec	31	23:59:60	+	S
Leap	1973	Dec	31	23:59:60	+	S
Leap	1974	Dec	31	23:59:60	+	S
Leap	1975	Dec	31	23:59:60	+	S
Leap	1976	Dec	31	23:59:60	+	S
Leap	1977	Dec	31	23:59:60	+	S
Leap	1978	Dec	31	23:59:60	+	S
Leap	1979	Dec	31	23:59:60	+	S
Leap	1981	Jun	30	23:59:60	+	S
Leap	1982	Jun	30	23:59:60	+	S
Leap	1983	Jun	30	23:59:60	+	S
Leap	1985	Jun	30	23:59:60	+	S
Leap	1987	Dec	31	23:59:60	+	S
Leap	1989	Dec	31	23:59:60	+	S
Leap	1990	Dec	31	23:59:60	+	S
Leap	1992	Jun	30	23:59:60	+	S
Leap	1993	Jun	30	23:59:60	+	S
Leap	1994	Jun	30	23:59:60	+	S
Leap	1995	Dec	31	23:59:60	+	S
Leap	1997	Jun	30	23:59:60	+	S
Leap	1998	Dec	31	23:59:60	+	S