doubledate.eos#

doubledate.eos(date: date, offset: int = 0) date#

Returns the end of the calendar semester, i.e. one of 30 June or 31 December, then optionally offsets it by offset semesters.

Parameters:
  • date (datetime.date) – the date from which to compute the end of the semester

  • offset (int, optional) – an offset from the end of the semester of the date

Returns:

The end of the semester

Return type:

datetime.date