def daterange(start, stop, steps):
    """ A generator for stepping through time. """
    delta = (stop - start) / steps
    current = start
    while current + delta <= stop:
        yield current, current + delta
        current += delta
