year_days(date)

Returns the number of days in the year for a specific date.