[Tutor] Creating unique output log files
Sean 'Shaleh' Perry
shalehperry@attbi.com
Fri, 17 May 2002 08:15:29 -0700 (PDT)
On 17-May-2002 stuart_clemons@us.ibm.com wrote:
>
> Hi all:
>
> I'm working on a program that will be run in the am and pm, everyday. The
> program needs to create a unique output log everytime it's run.
>
> I'm using Python v2.2.1 under WinNT4.
>
> Any hints on how I can automatically create a unique output log everytime
> it's run. Making the date a part of the output log file name seems to
> make a lot of sense, but I don't know how to do it. Something like
> 0517am.out & 0517pm.out.
>
Look at the standard module 'time' in the library reference.