def get_datetime_range(start_date, end_date, time_delta):
    """
    :param start_date: (datetime.datetime) First date (included)
    :param end_date: (datetime.datetime) Last date (not included)
    :param time_delta: (datetime.timedelta) Increment
    :returns ([datetime.datetime]) All datetimes from start_date up to, but not including, end_date
    """
    dt = start_date
    out = []
    while dt < end_date:
        out.append(dt)
        dt += time_delta
    return out