time.mktime bug in 2.0?

Jeff Collins jcollins at endtech.com
Wed Jan 3 11:54:49 EST 2001


Let me add something to my response.  That change occurred for Python 1.6
(just looked it up in the CVS repository).  Several other changes of this
sort were introduced then - see http://www.python.org/1.6.

On Wed, 3 Jan 2001, Jeff Collins wrote:

> 
> The argument is a 9-tuple:
> 
> time.mktime((1999,12,21,0,0,0,0,0,0))
> 
> 
> On Wed, 3 Jan 2001 wmiller34 at my-deja.com wrote:
> 
> > I'm getting this "TypeError" when I use mktime in 2.0.  It works in
> > 1.52.  Any ideas?
> > 
> > >>> import time
> > >>> t = time.mktime(1999,12,21,0,0,0,0,0,0)
> > Traceback (innermost last):
> >   File "<interactive input>", line 1, in ?
> > TypeError: mktime requires exactly 1 argument; 9 given
> > 
> > 
> > -Walter
> > 
> > 
> > Sent via Deja.com
> > http://www.deja.com/
> > 
> 
> 

-- 
Jeffery D. Collins, Ph.D.
Sr. Software Developer
Endeavors Technology, Inc.





More information about the Python-list mailing list