<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gen_time_intervals(start, end, delta):
 """Create time intervals with timedelta periods using datetime for start and end """

    curr = start
    while curr < end:
        yield curr
        curr += delta