calendar
Calendars, weekdays and leap-year helpers.
Beginner
calendar.isleap(2028), calendar.monthrange(2026, 2) → (weekday of the 1st, number of days), calendar.month(2026, 10) prints a month.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.