Skip to content

Commit

Permalink
Document getfirstweekday and setfirstweekday
Browse files Browse the repository at this point in the history
  • Loading branch information
StanFromIreland authored Dec 3, 2024
1 parent dabcecf commit e46405e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/library/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 int for the current first weekday (0--6).

.. method:: setfirstweekday(firstweekday)

Allows you to change the first weekday by setting `firstweekday` to an int (0--6).

.. method:: iterweekdays()

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

0 comments on commit e46405e

Please sign in to comment.