mirror of
https://github.com/python/cpython.git
synced 2025-08-16 14:50:43 +00:00
[3.12] gh-128317: Document calendar.TextCalendar.formatweek
(GH-128353) (#128358)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
be7314ffac
commit
b22d0fcbe1
1 changed files with 8 additions and 0 deletions
|
@ -138,6 +138,14 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
|
|||
|
||||
:class:`TextCalendar` instances have the following methods:
|
||||
|
||||
.. method:: formatweek(theweek, w=0)
|
||||
|
||||
Return a single week in a string with no newline. If *w* is provided, it
|
||||
specifies the width of the date columns, which are centered. Depends
|
||||
on the first weekday as specified in the constructor or set by the
|
||||
:meth:`setfirstweekday` method.
|
||||
|
||||
|
||||
.. method:: formatmonth(theyear, themonth, w=0, l=0)
|
||||
|
||||
Return a month's calendar in a multi-line string. If *w* is provided, it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue