def ToTimeTuple(self):
        """Convert a date into a time tuple (time module) corresponding to the
        same day with the midnight hour."""
        ret = [self.year, self.month, self.day]
        ret.extend([0, 0, 0])
        ret.append(self.weekday())
        ret.extend([self.GetYearDay(), 0])
        return tuple(ret)
Convert a date into a time tuple (time module) corresponding to the
        same day with the midnight hour.
recipes/Python/117215_A_Date_module/recipe-117215.py