The calendar Module
The calendar
module
supplies calendar-related functions, including functions to print a
text calendar for any given month or year. By default,
calendar
considers Monday the first day of the
week and Sunday the last one. You can change this setting by calling
function calendar.setfirstweekday
.
calendar
handles years in the range supported by
module time
, typically 1970 to 2038. Module
calendar
supplies the following functions.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.