[Tutor] noobie question,,,error related

Alex Hall mehgcap at gmail.com
Mon Jan 31 04:32:31 CET 2011


On 1/30/11, walter weston <simplemind09 at gmail.com> wrote:
> I get this error when I try and load the datetime module,
>
> Traceback (most recent call last):
>   File "C:/Python27/TIMED_PROGRAM.py", line 2, in <module>
>     datetime.ctime()
> AttributeError: 'module' object has no attribute 'ctime'
>
>
> why is this?
Did you actually import it first, as in
import datetime
or
from datetime import ctime
If not, then that is the problem. I have never used this module, so it
is possible that ctime is really non-existent or is not a method, but
I am not sure there.
>


-- 
Have a great day,
Alex (msg sent from GMail website)
mehgcap at gmail.com; http://www.facebook.com/mehgcap


More information about the Tutor mailing list