[XML-SIG] leap seconds

M.-A. Lemburg mal@lemburg.com
Fri, 19 Apr 2002 12:05:04 +0200


Alexandre wrote:
> 
> On Fri, Apr 19, 2002 at 09:31:35AM +0200, Martin v. Loewis wrote:
> > 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.
> 
> And I thought handling DST was a nightmare... Now you tell me there are leap
> seconds!

Note that leap seconds are always inserted at 23:59:60 UTC (there
have been no deletions so far).

See http://tycho.usno.navy.mil/leapsec.html for details.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/