Printing date a file

Beeyah dbickett at gmail.com
Tue Aug 24 19:43:54 EDT 2004


Kory Wheatley <wheakorypersonal at yahoo.com> wrote in message news:<mailman.2296.1093373725.5135.python-list at python.org>...
> 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