for timestamp in datespan(datetime(2007, 3, 30, 15, 30), datetime(2007, 3, 
    30, 18, 35), delta=timedelta(hours=1)):
    print(timestamp)
How to iterate over a timespan after days, hours, weeks and months in Python?