Skip to content

Instantly share code, notes, and snippets.

@sedaghatfar
Last active December 15, 2015 06:48
Show Gist options
  • Save sedaghatfar/5218500 to your computer and use it in GitHub Desktop.
Save sedaghatfar/5218500 to your computer and use it in GitHub Desktop.
[Python] Date and Time
#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