<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def doys_int(self):
 """A sorted list of days of the year in this analysis period as integers."""

        if not self._is_reversed:
            return self._calc_daystamps(self.st_time, self.end_time)
        else:
            doys_st = self._calc_daystamps(self.st_time, DateTime.from_hoy(8759))
            doys_end = self._calc_daystamps(DateTime.from_hoy(0), self.end_time)
            return doys_st + doys_end