[Tutor] help---- how do i create a file with todays date as thefilename

Daniel Yoo dyoo@hkn.eecs.berkeley.edu
Sun, 3 Dec 2000 00:10:25 -0800 (PST)


On Sat, 2 Dec 2000, Darrell Brogdon wrote:

> That raises an interesting question, isn't the following redundant?
> 
> >>> import time
> >>> from time import time, localtime, strftime
> 
> By that I mean, by entering 'import time' aren't you essentially doing
> the same thing as 'from time import time, localtime, strftime' except
> that with the latter you are importing specific classes?

Whoops.  Yes, it's redundant.  I should have edited my example more
carefully.  As I was typing in the interpreter, I realized that the
expression:

    time.localtime(time.time())

would have looked really ugly, so I changed my mind and used the
"from" statement.