How to use date object

Mark McEahern marklists at mceahern.com
Fri Oct 22 22:54:43 EDT 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

etc.

// m



More information about the Python-list mailing list