Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Document TextCalendar prweek and mdays attribute
Signed-off-by: apurvakhatri <khatri.ap@northeastern.edu>
  • Loading branch information
apurvakhatri committed Aug 25, 2023
commit 2aabadfb2aad0a08acefe9eec1bd34ab9c5ac081
9 changes: 9 additions & 0 deletions Doc/library/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is

:class:`TextCalendar` instances have the following methods:

.. method:: prweek(theweek, width)

Print a week's calendar as returned by :meth:`formatweek`.

.. method:: formatmonth(theyear, themonth, w=0, l=0)

Return a month's calendar in a multi-line string. If *w* is provided, it
Expand Down Expand Up @@ -436,6 +440,11 @@ For simple text calendars this module provides the following functions.

The :mod:`calendar` module exports the following data attributes:

.. data:: mdays

An array that represents the number of days in each month.


.. data:: day_name

An array that represents the days of the week in the current locale.
Expand Down