[Tutor] Help with time module

Alberto Troiano albertito_g at hotmail.com
Fri May 13 15:24:29 CEST 2005


Hey everyone

I have two strings like this

hour1="14:30"
hour2="15:30"

I want to compare them like this:

if local_time between hour1 and hour2:
    print True
else
    print False

Can anyone tell me how to make that comparison to work??????? (I don't know 
how to take only the time in this format(Hour:Minutes))

Thanks in advanced

Alberto




More information about the Tutor mailing list