def hours(self):
        ''' Same as dates() but returns 24 times more info: one for each hour.'''
        for date in self.dates():
            for hour in xrange(24):
                yield datetime.datetime.combine(date, datetime.time(hour))
def hours ( self ) : for date in self . dates ( ) : for hour in xrange ( 24 ) : yield datetime . datetime . combine ( date , datetime . time ( hour ) )
Same as dates() but returns 24 times more info: one for each hour.