What is the module/method used to get the current time?
from datetime import datetime datetime.now().strftime('%Y-%m-%d %H:%M:%S')
For this example, the output will be like this: '2013-09-18 11:16:32'
'2013-09-18 11:16:32'
Here is the list of strftime directives.