mirror of
https://github.com/python/cpython.git
synced 2026-01-03 14:02:21 +00:00
[3.12] gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday (GH-127579) (#128565)
(cherry picked from commit 953b49e546)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
8788a9570f
commit
fb8bb36f56
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
.. 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()
|
||||
|
||||
Return an iterator for the week day numbers that will be used for one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue