10/02: Python > print current date & time
Category: Web dev
Posted by: hajime osako
Date and Time handling in Python - Python Code Snippet
print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))
print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))