doubledate.sot#

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

Returns the first date of the calendar trimester, i.e. one of 1 January, 1 May or 1 September, then optionally offsets it by offset trimesters.

Parameters:
  • date (datetime.date) – the date from which to compute the start of the trimester

  • offset (int, optional) – an offset from the start of the trimester of the date

Returns:

The start of the trimester

Return type:

datetime.date