Printing date a file

Beeyah dbickett at
Wed Aug 25 01:43:54 CEST 2004

Kory Wheatley <wheakorypersonal at> wrote in message news:<mailman.2296.1093373725.5135.python-list at>...
> In Python how would you print the date in a file, I
> have a logging program written in python and for each
> new recorded added to the file, I would like to print
> the 
> date, something like this below:
> 08/24/2004 or 08-24-2004
> --
> Kory Wheatley

Read up on the time module, specifically strftime.

Daniel Bickett

More information about the Python-list mailing list