datetime

Mike Meyer mwm at mired.org
Thu May 19 05:11:03 EDT 2005


Nader Emami <emami at knmi.nl> writes:

> L.S.,
>
> It is very simple question: Why doesn't work the next statments?
>
> import datetime
>
> today = datetime.date.today()
>
> and I get the next error:
>
> today = datetime.date.today()
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
> AttributeError: time
>
> I can't understand it!

It works fine here (Python 2.4.1 on FreeBSD 5-STABLE). Possibly you
have a corrupt file?

     <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list