Skip to content
Merged
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Doc/library/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -391,6 +399,12 @@ For simple text calendars this module provides the following functions.

The :mod:`calendar` module exports the following data attributes:

.. data:: firstweekday
:no-index:

An :class:`int` (0-6) representing the current setting for the first weekday.
The default is 0, which corresponds to Monday.

.. data:: day_name

A sequence that represents the days of the week in the current locale,
Expand Down
Loading