[Tutor] time.strptime in Active State Python 2.1

Kojo Idrissa kojo@hal-pc.org
Mon, 11 Jun 2001 20:51:23 -0500


I'm trying to use that attribute of the time module, but I"m being told 
that the attribute DNE.  According to page 172 of David Beazley's 'Python 
Essential Ref', it does exist.

Is this a change from 1.5.2 (which the book is based on) to 2.1?  Below are 
the screens from my interactive prompt.

Thanks,

PythonWin 2.1 (#15, Apr 23 2001, 18:00:35) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (MarkH@ActiveState.com) - see 
'Help/About PythonWin' for further copyright information.
<snip>
 >>> time.strptime('06/11/01 20:27:24',[])
Traceback (most recent call last):
   File "<interactive input>", line 1, in ?
AttributeError: 'time' module has no attribute 'strptime'

****************************
Kojo Idrissa

kojo@hal-pc.org
http://www.hal-pc.org/~kojo/
****************************