OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
calendar.calendar_coverage Namespace Reference

Determine which local dates have complete selected-calendar coverage. More...

Functions

frozenset[date] covered_calendar_days (CalendarEventCache cache, str account_id, Path selection, Path catalog, tzinfo zone, date first_day, int days)
 Return dates fully covered by every known enabled calendar.

Detailed Description

Determine which local dates have complete selected-calendar coverage.

Function Documentation

◆ covered_calendar_days()

frozenset[date] calendar.calendar_coverage.covered_calendar_days ( CalendarEventCache cache,
str account_id,
Path selection,
Path catalog,
tzinfo zone,
date first_day,
int days )

Return dates fully covered by every known enabled calendar.

Parameters
cacheLocal event cache.
account_idSelected account.
selectionCalendar selection file.
catalogDiscovered calendar catalog.
zoneDisplay timezone.
first_dayFirst requested local date.
daysNumber of requested dates.
Returns
Fully covered dates, conservatively empty for unknown catalogs.