iterate through timeslices
Posted on 2009-04-20
I'm wanting to loop iterate though half hour timeslices in a %H:%M:%S format. One way of doing this would be to save each half hour slice to a tuple and use a for loop:
timeslices = ("00:00:00", "00:30:00" etc...)
for i in timeslices:
#do processing here
Is there a more efficient way to instantiate this loop?