def GetYearDay(self):
        """Returns the year day of a date."""
        ret = self.day
        for month in range(1, self.month):
            ret += NumberDaysMonth(month, self.year)
        return ret
Returns the year day of a date.
recipes/Python/117215_A_Date_module/recipe-117215.py