Calendar.daysbetween#

Calendar.daysbetween(this: date, that: date, bounds: str = 'left') int#

Returns the number of open days between two dates.

Parameters:
  • this (datetime.date) – the left-bound of the calendar

  • that (datetime.date) – the right-bound of the calenar

  • bounds (str, optional) – whether to include this or that in the count one of ‘both’, ‘left’ (default) or ‘right’ or None

Returns:

The number of dates between this and that

Return type:

int