Created
June 26, 2013 18:26
-
-
Save damianesteban/5869988 to your computer and use it in GitHub Desktop.
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
from datetime import datetime | |
now = datetime.now() | |
print now | |
current_month = now.month | |
current_day = now.day | |
current_year = now.year | |
current_hour = now.hour | |
current_minute = now.minute | |
current_second = now.second | |
print current_month | |
print current_day | |
print current_year | |
print str(current_month) + "/" + str(current_day) + "/" + str(current_year) + str(current_hour) + ":" + str(current_minute) + ":" + str(current_second) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment