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

Method itermonthdates

Lib/calendar.py:238–245  ·  view source on GitHub ↗

Return an iterator for one month. The iterator will yield datetime.date values and will always iterate through complete weeks, so it will yield dates outside the specified month.

(self, year, month)

Source from the content-addressed store, hash-verified

236 yield i%7
237
238 def itermonthdates(self, year, month):
239 """
240 Return an iterator for one month. The iterator will yield datetime.date
241 values and will always iterate through complete weeks, so it will yield
242 dates outside the specified month.
243 """
244 for y, m, d in self.itermonthdays3(year, month):
245 yield datetime.date(y, m, d)
246
247 def itermonthdays(self, year, month):
248 """

Callers 1

monthdatescalendarMethod · 0.95

Calls 2

itermonthdays3Method · 0.95
dateMethod · 0.80

Tested by

no test coverage detected