Return a matrix representing a month's calendar. Each row represents a week; days outside this month are zero.
(self, year, month)
| 309 | return [ days[i:i+7] for i in range(0, len(days), 7) ] |
| 310 | |
| 311 | def monthdayscalendar(self, year, month): |
| 312 | """ |
| 313 | Return a matrix representing a month's calendar. |
| 314 | Each row represents a week; days outside this month are zero. |
| 315 | """ |
| 316 | days = list(self.itermonthdays(year, month)) |
| 317 | return [ days[i:i+7] for i in range(0, len(days), 7) ] |
| 318 | |
| 319 | def yeardatescalendar(self, year, width=3): |
| 320 | """ |
no test coverage detected