]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekda...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Mon, 6 Jan 2025 23:38:45 +0000 (23:38 +0000)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 23:38:45 +0000 (00:38 +0100)
Doc/library/calendar.rst

index ace8529d6e7e0c59456ab663ee24951e383aa38c..dadd301ebc795bf6a0f6939835e38ac742a428be 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