| Store | Cart

mysteriously nonfunctioning script - very simple

From: Sean McIlroy <sean...@yahoo.com>
25 Mar 2005 22:13:09 -0800
Can anybody help me make sense of the fact that the following script
doesn't work? It's so simple I can't imagine what I'm missing. Any
help will be much appreciated.

Peace,
STM


## ALARM CLOCK:
from time import sleep,time,localtime

wakeuptime = input('hours: '), input('minutes: ')
onehourlater = (wakeuptime[0]+1, wakeuptime[1])
while not wakeuptime < localtime(time())[3:5] < onehourlater:
    sleep(3)    
print 'PLAY A SOUND FILE'

Recent Messages in this Thread
Sean McIlroy Mar 26, 2005 06:13 am
Piet van Oostrum Mar 26, 2005 11:12 am
Peter Hansen Mar 26, 2005 11:55 am
Sean McIlroy Mar 26, 2005 06:47 pm
Diez B. Roggisch Mar 26, 2005 07:01 pm
Peter Otten Mar 26, 2005 07:19 pm
Michael Spencer Mar 26, 2005 07:41 pm
Heiko Wundram Mar 26, 2005 08:52 pm
Sean McIlroy Mar 27, 2005 07:41 pm
Greg Ewing Mar 31, 2005 04:04 am
Messages in this thread