Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b22d0fc

Browse files
miss-islingtonhugovk
andauthoredDec 30, 2024
[3.12] gh-128317: Document calendar.TextCalendar.formatweek (GH-128353) (#128358)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent be7314f commit b22d0fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎Doc/library/calendar.rst

+8
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
138138

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

141+
.. method:: formatweek(theweek, w=0)
142+
143+
Return a single week in a string with no newline. If *w* is provided, it
144+
specifies the width of the date columns, which are centered. Depends
145+
on the first weekday as specified in the constructor or set by the
146+
:meth:`setfirstweekday` method.
147+
148+
141149
.. method:: formatmonth(theyear, themonth, w=0, l=0)
142150

143151
Return a month's calendar in a multi-line string. If *w* is provided, it

0 commit comments

Comments
 (0)
Failed to load comments.