pretty

Thursday, May 10, 2012

Get that datetime string in python


import datetime
nowstring = datetime.datetime.now().strftime("%Y-%m-%d %H-%M-%S")
print (nowstring)

No comments:

Post a Comment