gh-128317: Document calendar.TextCalendar.formatweek (#128353)

This commit is contained in:
Hugo van Kemenade 2024-12-30 19:25:39 +02:00 committed by GitHub
parent 34b85ef26c
commit 6dbace397f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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