code: def gen_time_intervals(start, end, delta):
      
      curr = start
      while curr < end:
          yield curr
          curr += delta
docs: Create time intervals with timedelta periods using datetime for start
      and end