Date and Time handling in Python - Python Code Snippet

print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))