gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday (#127579)

This commit is contained in:
Stan Ulbrych 2025-01-06 23:38:45 +00:00 committed by GitHub
parent 7363476b64
commit 953b49e546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,14 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
:class:`Calendar` instances have the following methods: :class:`Calendar` instances have the following methods:
.. method:: getfirstweekday()
Return an :class:`int` for the current first weekday (0-6).
.. method:: setfirstweekday(firstweekday)
Set the first weekday to *firstweekday*, passed as an :class:`int` where Monday is 0 and Sunday is 6.
.. method:: iterweekdays() .. method:: iterweekdays()
Return an iterator for the week day numbers that will be used for one Return an iterator for the week day numbers that will be used for one