I have to find if a certain period of time in the format datetime.datetime.now().replace(microsecond=0) is greater than 5 minutes. How can I do that? This is my code:
ttime = datetime.now().replace(microsecond=0)
print "Current Time:- "+str(ttime)
a = raw_input("Press y and Enter")
if a=="y":
    print "OK!"
    ntime = datetime.now().replace(microsecond=0)
    difference = ntime-ttime
    if difference> #I don't know what to put!:
        print "Difference is greater than 5 min"
    else:
        print "Difference is not greater than 5 min"
 
     
    