Printing date a file

Larry Bates lbates at swamisoft.com
Tue Aug 24 15:54:57 EDT 2004


Take a look at time.strftime()

HTH,
Larry Bates
Syscon, Inc.

"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
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail





More information about the Python-list mailing list