What did I do wrong?


#1

What did I do wrong? the program keeps on telling me that its not in the right format

from datetime import datetime
now = datetime.now()

print now.month
print now.day
print now.year
print now.hour
print now.minute
print now.second

print '%s/%s/%s:%s:%s:%s' % (now.month,now.day,now.year,now.hour,now.minute,now.second)


#2

How about just printing the now variable. *shrugs**

See it

from datetime import datetime
now = datetime.now()
print (now)

#3

:camera:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sausage


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.