ID EN
Calendar

setfirstweekday

Python 3.11

Sets the weekday (0 is Monday, 6 is Sunday) to start each week. The values MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, and SUNDAY are provided for convenience. For example, to set the first weekday to Sunday:

Syntax

PYTHON
calendar.setfirstweekday(weekday)

Examples

Example 1
PYTHON
import calendar
calendar.setfirstweekday(calendar.SUNDAY)

See Also

MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY