MCPcopy Index your code
hub / github.com/python/cpython / yeardayscalendar

Method yeardayscalendar

Lib/calendar.py:339–346  ·  view source on GitHub ↗

Return the data for the specified year ready for formatting (similar to yeardatescalendar()). Entries in the week lists are day numbers. Day numbers outside this month are zero.

(self, year, width=3)

Source from the content-addressed store, hash-verified

337 return [months[i:i+width] for i in range(0, len(months), width) ]
338
339 def yeardayscalendar(self, year, width=3):
340 """
341 Return the data for the specified year ready for formatting (similar to
342 yeardatescalendar()). Entries in the week lists are day numbers.
343 Day numbers outside this month are zero.
344 """
345 months = [self.monthdayscalendar(year, m) for m in Month]
346 return [months[i:i+width] for i in range(0, len(months), width) ]
347
348
349class TextCalendar(Calendar):

Callers 1

test_yeardayscalendarMethod · 0.80

Calls 1

monthdayscalendarMethod · 0.95

Tested by 1

test_yeardayscalendarMethod · 0.64