summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>2025-01-06 23:38:45 (GMT)
committerGitHub <noreply@github.com>2025-01-06 23:38:45 (GMT)
commit953b49e5468d02afaddadc2307f4763422078603 (patch)
treef5c8f03bfec1e9cba3fe88197659e85d6c7a4986 /Doc/library
parent7363476b6405e3d288a61282aa7bc6aca9c2114d (diff)
downloadcpython-953b49e5468d02afaddadc2307f4763422078603.zip
cpython-953b49e5468d02afaddadc2307f4763422078603.tar.gz
cpython-953b49e5468d02afaddadc2307f4763422078603.tar.bz2
gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekday` (#127579)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/calendar.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index ace8529..dadd301 100644
--- a/Doc/library/calendar.rst
+++ b/Doc/library/calendar.rst
@@ -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