Help for 3/6 on date and time


#1

I am not sure what to do. Help???


#2

Hi.

Please post your code so we can help you : )


#3

Don't worry, passed it now :smile:


#4

what is wrong with this??? I dont get it!! uwahhh.
from datetime import datetime
now = datetime.now()
print 'mm/dd/yyyy hh:mm:ss.'(now.hour, now.minute, now.second now.month, now.minute, now.second)
print '%s:%s:%s %s:%s:%s' %


#5

@sanjanavalluru

print 'mm/dd/yyyy hh:mm:ss.' doesn't work, your importing datetime, it nows mm/dd/yy you just put in the strings separators and then the strings order after
like this

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


#6

from datetime import datetime
now = datetime.now()
print datetime.now()
now = datetime.now()
print now.year
now = datetime.now()
print now.month
now = datetime.now()
print now.day


#7

worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


#8

this is number 3

from datetime import datetime
print now.year
now =datetime.now()
print now
print now.month
print now.da


#9

I hate you so much you make me puke