I have a array (list) with times and now I need to determine if the eclipsed time is between two successive times from this list.
duurSeq=[11,16,22,29]
nu = time.time()
verstreken_tijd = nu - starttijd
for t in duurSeq:
if (verstreken_tijd > t ) and (verstreken_tijd < **t_next** ):
doSomething():
my question is: How do I get t_next (the next item in the array within the for loop)