@@ -28,58 +28,6 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
28
28
2 BC, and so on.
29
29
30
30
31
- .. class :: Day
32
-
33
- Enumeration defining the days of the week as integer constants, from 0 to 6.
34
-
35
- .. attribute :: MONDAY
36
-
37
- .. attribute :: TUESDAY
38
-
39
- .. attribute :: WEDNESDAY
40
-
41
- .. attribute :: THURSDAY
42
-
43
- .. attribute :: FRIDAY
44
-
45
- .. attribute :: SATURDAY
46
-
47
- .. attribute :: SUNDAY
48
-
49
- .. versionadded :: 3.12
50
-
51
-
52
- .. class :: Month
53
-
54
- Enumeration defining months of the year as integer constants, from 1 to 12.
55
-
56
- .. attribute :: JANUARY
57
-
58
- .. attribute :: FEBRUARY
59
-
60
- .. attribute :: MARCH
61
-
62
- .. attribute :: APRIL
63
-
64
- .. attribute :: MAY
65
-
66
- .. attribute :: JUNE
67
-
68
- .. attribute :: JULY
69
-
70
- .. attribute :: AUGUST
71
-
72
- .. attribute :: SEPTEMBER
73
-
74
- .. attribute :: OCTOBER
75
-
76
- .. attribute :: NOVEMBER
77
-
78
- .. attribute :: DECEMBER
79
-
80
- .. versionadded :: 3.12
81
-
82
-
83
31
.. class :: Calendar(firstweekday=0)
84
32
85
33
Creates a :class: `Calendar ` object. *firstweekday * is an integer specifying the
@@ -446,6 +394,29 @@ The :mod:`calendar` module exports the following data attributes:
446
394
An array that represents the abbreviated days of the week in the current locale.
447
395
448
396
397
+ .. data :: MONDAY
398
+ TUESDAY
399
+ WEDNESDAY
400
+ THURSDAY
401
+ FRIDAY
402
+ SATURDAY
403
+ SUNDAY
404
+
405
+ Aliases for the days of the week,
406
+ where ``MONDAY `` is ``0 `` and ``SUNDAY `` is ``6 ``.
407
+
408
+ .. versionadded :: 3.12
409
+
410
+
411
+ .. class :: Day
412
+
413
+ Enumeration defining days of the week as integer constants.
414
+ The members of this enumeration are exported to the module scope as
415
+ :data: `MONDAY ` through :data: `SUNDAY `.
416
+
417
+ .. versionadded :: 3.12
418
+
419
+
449
420
.. data :: month_name
450
421
451
422
An array that represents the months of the year in the current locale. This
@@ -459,15 +430,33 @@ The :mod:`calendar` module exports the following data attributes:
459
430
locale. This follows normal convention of January being month number 1, so it
460
431
has a length of 13 and ``month_abbr[0] `` is the empty string.
461
432
462
- .. data :: MONDAY
463
- TUESDAY
464
- WEDNESDAY
465
- THURSDAY
466
- FRIDAY
467
- SATURDAY
468
- SUNDAY
469
433
470
- Aliases for day numbers, where ``MONDAY `` is ``0 `` and ``SUNDAY `` is ``6 ``.
434
+ .. data :: JANUARY
435
+ FEBRUARY
436
+ MARCH
437
+ APRIL
438
+ MAY
439
+ JUNE
440
+ JULY
441
+ AUGUST
442
+ SEPTEMBER
443
+ OCTOBER
444
+ NOVEMBER
445
+ DECEMBER
446
+
447
+ Aliases for the months of the year,
448
+ where ``JANUARY `` is ``1 `` and ``DECEMBER `` is ``12 ``.
449
+
450
+ .. versionadded :: 3.12
451
+
452
+
453
+ .. class :: Month
454
+
455
+ Enumeration defining months of the year as integer constants.
456
+ The members of this enumeration are exported to the module scope as
457
+ :data: `JANUARY ` through :data: `DECEMBER `.
458
+
459
+ .. versionadded :: 3.12
471
460
472
461
473
462
The :mod: `calendar ` module defines the following exceptions:
0 commit comments