ID EN
Calendar

yeardatescalendar

Python 3.11

Return the data for the specified year ready for formatting. The return value is a list of month rows. Each month row contains up to width months (defaulting to 3). Each month contains between 4 and 6 weeks and each week contains 1–7 days. Days are datetime.date objects.

Syntax

PYTHON
yeardatescalendar(year, width=3)

See Also

datetime.date