How to use date object

Mark McEahern marklists at
Sat Oct 23 04:54:43 CEST 2004

marie wrote:

>I am a newbie in python.  And I would like to know how to create and
>use the methods in date.  Can someone please show me some code about
>it.  Thanks.
import datetime
year = 2004
month = 10
day = 22
d = datetime.datetime(year, month, day)
print d


// m

More information about the Python-list mailing list