TimeThe time module
Exampleimport time t = time.time() # Returns (year,month,day,hour,minute,second,weekday,day,dst) tp = time.localtime(t) # Produces a string like 'Mon Jul 12 14:45:23 1999' print time.localtime(tp) |
<<< | O'Reilly OSCON 2000, Advanced Python Programming, Slide 60 July 17, 2000, beazley@cs.uchicago.edu |
>>> |