Python Time Library
#also see datetime
import time
now = time.time()
print(now)
Dr. Hippo
#also see datetime
import time
now = time.time()
print(now)
import time
t = time.localtime()
print time.asctime(t)
# Prints Tue Feb 17 09:42:58 2009