]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirs...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jan 2025 23:46:16 +0000 (00:46 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 23:46:16 +0000 (23:46 +0000)
(cherry picked from commit 953b49e5468d02afaddadc2307f4763422078603)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Doc/library/calendar.rst

index 9743e24ad2cdf0b72779a665044e96ad7ce3ede8..9106092eb123d7b063a374da681f51f4ff23968a 100644 (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:
 
+   .. 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