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

calendar.month

Prev: calendar.LocaleTextCalendar | Up: calendar | Next: calendar.Month
Rel: calendar.calendar, calendar.Calendar, calendar.Day, calendar.firstweekday
Ref: docs.python.org — calendar.month
Tags: #public #python3 #stdlib #calendar


Import

import calendar
from calendar import month

Signature & Overview

calendar.month(theyear, themonth, w=0, l=0)

Return a month's calendar string (multi-line).

Usage

import calendar

s = calendar.month(2026, 12)
assert "December 2026" in s

Gotchas

REPL Inspect

from calendar import month
help(month)

Linked from

Related notes