Operations performed on calendars:
- calendar(year, w, I, c) – This function is used for displaying the year, width of characters, number of lines per week, and column separations.
- firstweekday() – It returns the first week day number. It is set by default as 0 (Monday)
- isleap(year) – This function helps us to identify whether the given year given as argument is a leap year or not.
- Leapdays(year1, year2) – This function is used to return the number of leap days between the specified years in the argument.
- month(year, month, w, I) – This is a function that prints the month of a specific year which is mentioned in the arguments. This function takes four arguments year, month, width of characters, and the number of lines taken by a week.
To learn more about calander in python for data science and programming, you can check this and this as well.