What is the module/method used to get the current time?
Similar to Harley's answer, but use the str() function for a quick-n-dirty, slightly more human readable format:
str()
>>> from datetime import datetime >>> str(datetime.now()) '2011-05-03 17:45:35.177000'