Last active
December 15, 2015 06:48
-
-
Save sedaghatfar/5218500 to your computer and use it in GitHub Desktop.
[Python] Date and Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Date and time program | |
#codecademy | |
from datetime import datetime | |
now = datetime.now() | |
print str(now.month) +"/"+ str(now.day) +"/"+ str(now.year) +" "+ str(now.hour) +":"+ str(now.minute) +":"+ str(now.second) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment