Python Calendar Module
Calendar functions — TextCalendar, isleap, monthrange, weekday. This category documents 9 Python calendar module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: calendar.TextCalendar(), calendar.HTMLCalendar(), calendar.isleap(), calendar.leapdays(), calendar.weekday(), calendar.monthrange(), calendar.day_name, calendar.month_name, calendar.monthcalendar(). calendar.TextCalendar() creates a calendar that generates plain text calendars. calendar.HTMLCalendar() creates a calendar that generates HTML calendars. calendar.isleap() returns True if the year is a leap year. calendar.leapdays() returns the number of leap years in the range [y1, y2). calendar.weekday() returns the day of the week (0=Monday, 6=Sunday). For a structured walkthrough of the whole topic, read the Calendar Module guide. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this Calendar Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.