Skip to content

Commit 953b49e

Browse files
gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday (#127579)
1 parent 7363476 commit 953b49e

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
@@ -40,6 +40,14 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
4040

4141
:class:`Calendar` instances have the following methods:
4242

43+
.. method:: getfirstweekday()
44+
45+
Return an :class:`int` for the current first weekday (0-6).
46+
47+
.. method:: setfirstweekday(firstweekday)
48+
49+
Set the first weekday to *firstweekday*, passed as an :class:`int` where Monday is 0 and Sunday is 6.
50+
4351
.. method:: iterweekdays()
4452

4553
Return an iterator for the week day numbers that will be used for one

0 commit comments

Comments
 (0)