Method: calendar.Calendar.monthdatescalendar
Calls: 12, Exceptions: 0, Paths: 1Back
Path 1: 12 calls (1.0)
2004 (12)
1 (1) 2 (1) 3 (1) 4 (1) 5 (1) 6 (1) 7 (1) 8 (1) 9 (1) 10 (1)
list (12)
1def monthdatescalendar(self, year, month):
2 """
3 Return a matrix (list of lists) representing a month's calendar.
4 Each row represents a week; week entries are datetime.date values.
5 """
6 dates = list(self.itermonthdates(year, month))
7 return [ dates[i:i+7] for i in range(0, len(dates), 7) ]