ID EN
Calendar

monthcalendar

Python 3.11

Returns a matrix representing a month’s calendar. Each row represents a week; days outside of the month are represented by zeros. Each week begins with Monday unless set by setfirstweekday().

Syntax

PYTHON
calendar.monthcalendar(year, month)

See Also

setfirstweekday()