From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:38:45 +0000 (+0000) Subject: gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekda... X-Git-Tag: v3.14.0a4~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=953b49e5468d02afaddadc2307f4763422078603;p=thirdparty%2FPython%2Fcpython.git gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and `setfirstweekday` (#127579) --- diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index ace8529d6e7e..dadd301ebc79 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