PyDocs

Nav

Data Types

Calendar

  • Calendar(firstweekday=0)
Base calendar class. This class doesn't do any formatting. It simply
provides data to subclasses.
Members of Calendar

f

firstweekday
The first weekday as an integer (0–6).

g

getfirstweekday
Return an int for the current first weekday (0–6).

i

itermonthdates
Return an iterator for one month.
itermonthdays
Like itermonthdates(), but will yield day numbers.
itermonthdays2
Like itermonthdates(), but will yield (day number, weekday number) tuples.
itermonthdays3
Like itermonthdates(), but will yield (year, month, day) tuples.
itermonthdays4
Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
iterweekdays
Return an iterator for one week of weekday numbers starting with the configured first one.

m

monthdatescalendar
Return a matrix (list of lists) representing a month's calendar.
monthdays2calendar
Return a matrix representing a month's calendar.
monthdayscalendar
Return a matrix representing a month's calendar.

s

setfirstweekday
Set the first weekday to firstweekday, passed as an int (0–6).

y

yeardatescalendar
Return the data for the specified year ready for formatting.
yeardays2calendar
Return the data for the specified year ready for formatting (similar to yeardatescalendar()).
yeardayscalendar
Return the data for the specified year ready for formatting (similar to yeardatescalendar()).
0 Examples
No examples for calendar/Calendar.
See Also
No see-alsos for calendar/Calendar
0 Notes
No notes for Calendar