What is the module/method used to get the current time?
The previous answers are all good suggestions, but I find it easiest to use ctime():
ctime()
In [2]: from time import ctime In [3]: ctime() Out[3]: 'Thu Oct 31 11:40:53 2013'
This gives a nicely formatted string representation of the current local time.