<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gday_of_year(self):
 """Return the number of days since January 1 of the given year."""

        return (self.date - dt.date(self.date.year, 1, 1)).days