@@ -38,21 +38,33 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
38
38
itself. This is the job of subclasses.
39
39
40
40
41
- :class: `Calendar ` instances have the following methods:
41
+ :class: `Calendar ` instances have the following methods and attributes:
42
+
43
+ .. attribute :: firstweekday
44
+
45
+ The first weekday as an integer (0--6).
46
+
47
+ This property can also be set and read using
48
+ :meth: `~Calendar.setfirstweekday ` and
49
+ :meth: `~Calendar.getfirstweekday ` respectively.
42
50
43
51
.. method :: getfirstweekday()
44
52
45
- Return an :class: `int ` for the current first weekday (0-6).
53
+ Return an :class: `int ` for the current first weekday (0--6).
54
+
55
+ Identical to reading the :attr: `~Calendar.firstweekday ` property.
46
56
47
57
.. method :: setfirstweekday(firstweekday)
48
58
49
- Set the first weekday to *firstweekday *, passed as an :class: `int ` where Monday is 0 and Sunday is 6.
59
+ Set the first weekday to *firstweekday *, passed as an :class: `int ` (0--6)
60
+
61
+ Identical to setting the :attr: `~Calendar.firstweekday ` property.
50
62
51
63
.. method :: iterweekdays()
52
64
53
65
Return an iterator for the week day numbers that will be used for one
54
66
week. The first value from the iterator will be the same as the value of
55
- the :attr: `firstweekday ` property.
67
+ the :attr: `~Calendar. firstweekday ` property.
56
68
57
69
58
70
.. method :: itermonthdates(year, month)
0 commit comments