Smipple is shutting down Nov 30, 2017. Some features are currently disabled.
Profile image for Thomas Simonsen simoth00
Date and time
Language
Python
Tags
Date and time

Date and time

1 from datetime import datetime 2 3 now = datetime.now() 4 5 mm = str(now.month) 6 7 dd = str(now.day) 8 9 yyyy = str(now.year) 10 11 hour = str(now.hour) 12 13 mi = str(now.minute) 14 15 ss = str(now.second) 16 17 print mm + "/" + dd + "/" + yyyy + " " + hour + ":" + mi + ":" + ss

Comments