datetime

N

Nader Emami

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!
 
M

Mike Meyer

Nader Emami said:
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
 
S

Sakesun Roykiattisak

Why doesn't work the next statments?

You talk like Yoda..
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!
Understand it, I cannot too.
Work fine, on my machine, the statements.
 
N

Nader

I have the next on my machine:
Python 2.3.3 (#1, Apr 6 2004, 01:47:39)
[GCC 3.3.3 (SuSE Linux)] on linux2

Maybe this is a problem!

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top