def timestamps_between(start, end, increment):
    # convert both start and end to datetime just in case either are dates
    start = datetime(start.year, start.month, start.day, getattr(start, 'hour', 0))
    end = datetime(end.year, end.month, end.day, getattr(end, 'hour', 0))

    while end <= start:
        yield start
        start += increment
dataset/ETHPy150Open mediawiki-utilities/python-mwviews/mwviews/api/pageviews.py/timestamps_between/swapped operands of `<=`