calendar — Work with Dates — PyMOTW 3
The calendar module defines the Calendar class, which encapsulates calculations for values such as the dates of the weeks in a given month or year. In addition, the TextCalendar and HTMLCalendar classes can produce pre-formatted output.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.