On this page
  1. calendar.setfirstweekday
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

calendar.setfirstweekday

Prev: calendar.prmonth | Up: calendar | Next: calendar.TextCalendar
Rel: calendar.calendar, calendar.Calendar, calendar.Day, calendar.firstweekday
Ref: docs.python.org — calendar.setfirstweekday
Tags: #public #python3 #stdlib #calendar


Import

import calendar
from calendar import setfirstweekday

Signature & Overview

calendar.setfirstweekday(firstweekday)

calendar.setfirstweekday() function.

Usage

import calendar

orig = calendar.firstweekday()
calendar.setfirstweekday(calendar.SUNDAY)
try:
    assert calendar.firstweekday() == calendar.SUNDAY
finally:
    calendar.setfirstweekday(orig)

Gotchas

REPL Inspect

from calendar import setfirstweekday
help(setfirstweekday)

Linked from

Related notes