https://github.com/python/cpython/commit/d81b99b53b55ae7146e6f50a87c1dfe04ff5f0ad
commit: d81b99b53b55ae7146e6f50a87c1dfe04ff5f0ad
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2025-01-07T00:45:26+01:00
summary:

[3.13] gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and 
`setfirstweekday` (GH-127579) (#128564)

(cherry picked from commit 953b49e5468d02afaddadc2307f4763422078603)

Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/calendar.rst

diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index 97ca34b6c6184c..226af250dc7e6c 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to