title: I am trying to make a alarm like feature app but it keeps waiting
body: <p>I am trying to make a alarm like app where I want a list of things to happen when its time. But I am facing a bug. Time keeps waiting for previous time instead of going to next time in list.</p>
  <pre><code>t1 = dt.time(hour=17,minute=8)
  t2 = dt.time(hour=18,minute=48)
  timetable = [t1, t2]
  
  for elt in timetable:
          i_time = elt
          #i_minute = i.minute
          while True:
              if i_time == dt.datetime.now().time():
              #if i_hour == dt.datetime.now().hour and i_minute == dt.datetime.now().minute:
                  #current_time = tk.Label(text = dt.datetime.now())
                  #current_time.pack()
                  #playsound('media/ClassAlarm.mp3')
                  print(&quot;Its time&quot;)
                  break
  </code></pre>
  <p>The function works fine when it comes to t1 but if t1 is passed and current time is higher that t1 it should go to t2 and ring alarm. But it keeps waiting for t1 which will happen next day. it doesn't read t2 unless t1 is processed.</p>
  <p>Ex. Current time 1:30 while t1 is 1:25 and t2 is 1:35. It doesn't ring at t2 but keeps waiting for t1 to happen again which has already happened.</p>
  <p>I have tried to execute for loop in different way</p>
  <pre><code>for elt in timetable:
    time = dt.datetime.now().time()
    if time - elt &lt; 0:
      break
    while(True):    
      if time == elt:
        print(&quot;you did it&quot;)
  </code></pre>
  <p>I have also tried <code>any()</code> method. Which isn't helping exactly as well</p>
  <pre><code>current_hour = dt.datetime.now().hour
  current_min = dt.datetime.now().minute
  alarm = any(i.hour == current_hour and i.minute == current_min for i in timetable)
  
  print(alarm)
  </code></pre>
  <p>I have tried posting question previously but wasn't able to explain properly. Hope this helps</p>