From e46405e47a4465b0232610176f9b45b7c9f7d7b2 Mon Sep 17 00:00:00 2001 From: "Stan U." <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:40:59 +0000 Subject: [PATCH] Document getfirstweekday and setfirstweekday --- Doc/library/calendar.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index eafc038d6cb722..7493cf15454586 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 int for the current first weekday (0--6). + + .. method:: setfirstweekday(firstweekday) + + Allows you to change the first weekday by setting `firstweekday` to an int (0--6). + .. method:: iterweekdays() Return an iterator for the week day numbers that will be used for one