Date and Time Functions Grand Finale


#1

Hi,
My code is not working. Can you tell me what is wrong?

from datetime import datetime
now = datetime.now()

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


#2

Spot the missing character?


#3

thank you. i did not see it


#4

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