Lines Matching refs:calendar
1 :mod:`calendar` --- General calendar-related functions
4 .. module:: calendar
9 **Source code:** :source:`Lib/calendar.py`
14 and provides additional useful functions related to the calendar. By default,
22 uses an idealized calendar, the current Gregorian calendar indefinitely extended
24 calendar in Dershowitz and Reingold's book "Calendrical Calculations", where
25 it's the base calendar for all computations.
34 preparing the calendar data for formatting. This class doesn't do any formatting
122 Return a month's calendar in a multi-line string. If *w* is provided, it
131 Print a month's calendar as returned by :meth:`formatmonth`.
136 Return a *m*-column calendar for an entire year as a multi-line string.
140 :meth:`setfirstweekday` method. The earliest year for which a calendar
146 Print the calendar for an entire year as returned by :meth:`formatyear`.
160 Return a month's calendar as an HTML table. If *withyear* is true the year
167 Return a year's calendar as an HTML table. *width* (defaulting to 3)
173 Return a year's calendar as a complete HTML page. *width* (defaulting to
216 import calendar
217 calendar.setfirstweekday(calendar.SUNDAY)
264 Returns a matrix representing a month's calendar. Each row represents a week;
271 Prints a month's calendar as returned by :func:`month`.
276 Returns a month's calendar in a multi-line string using the :meth:`formatmonth`
284 Prints the calendar for an entire year as returned by :func:`calendar`.
287 .. function:: calendar(year[, w[, l[c]]])
289 Returns a 3-column calendar for an entire year as a multi-line string using the
305 The :mod:`calendar` module exports the following data attributes: