Che M | 17 May 06:07
Picon
Favicon

datetime syntax error for May 8th and 9th 2008??

Am I missing something?  Why does May 7th
and other dates work but I'm getting "invalid
token" for May 8th and 9th?  (I have not tested
many other dates of the year in this way) This
is from a freshly begun IDLE session:

IDLE 1.2     
>>> import datetime
>>> datetime.datetime(2008,05,07)
datetime.datetime(2008, 5, 7, 0, 0)
>>> datetime.datetime(2008, 05, 08)
SyntaxError: invalid token
>>> datetime.datetime(2008, 05, 09)
SyntaxError: invalid token

Is this a glitch in the Matrix?

Che

E-mail for the greater good. Join the i’m Initiative from Microsoft.
_______________________________________________
Tutor maillist  -  Tutor <at> python.org
http://mail.python.org/mailman/listinfo/tutor

Gmane