[Tutor] Compare hours
Alberto Troiano
albertito_g at hotmail.com
Fri May 13 00:01:23 CEST 2005
Hey everyone
I have a question. I need to compare two dates and times but it has to be
quick. (With quick I mean that the algorythm has to be simple in efficient
Here is the deal:
day="thursday"
hour1="15:30"
hour2="16:30"
all of the above are strings
I have to get the system date and time and check if they are between the
strings and check that days are the same
Can anyone send me an explained code cause I don't know how to work with
dates and times in Python (Never needed it until now)
Thanks
Alberto
More information about the Tutor
mailing list