def finite_datetimes(self, finite_start, finite_stop):
        """
        Simply returns the points in time that correspond to turn of day.
        """
        date_start = datetime(finite_start.year, finite_start.month, finite_start.day)
        dates = []
        for i in itertools.count():
            t = date_start + timedelta(days=i)
            if t >= finite_stop:
                return dates
            if t >= finite_start:
                dates.append(t)
def finite_datetimes ( self , finite_start , finite_stop ) : date_start = datetime ( finite_start . year , finite_start . month , finite_start . day ) dates = [ ] for i in itertools . count ( ) : t = date_start + timedelta ( days = i ) if t >= finite_stop : return dates if t >= finite_start : dates . append ( t )
Simply returns the points in time that correspond to turn of day.