Calendar ******** .. highlight:: python Links ===== :doc:`date` Snippets -------- - Last day of month, :doc:`snippets/date` Sample ====== :: import calendar >>> calendar.monthrange(2002, 1) (1, 31) >>> calendar.monthrange(2008, 2) (4, 29)