regexp search for variable and string
John Hunter
jdhunter at nitace.bsd.uchicago.edu
Mon May 20 10:33:27 EDT 2002
>>>>> "Joshua" == Joshua Newman <lazerpub at yahoo.com> writes:
Joshua> date= time.strftime("%Y/%m/%d", time.localtime(time.time()))
Actually, the time arg to strftime is also optional an defaults to
now. So the above is equivalent to
date = time.strftime("%Y/%m/%d")
Ditto for time.localtime. Instead of
time.localtime(time.time())
you can use
time.localtime()
John Hunter
More information about the Python-list
mailing list