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

Method formatmonthname

Lib/calendar.py:393–402  ·  view source on GitHub ↗

Return a formatted month name.

(self, theyear, themonth, width, withyear=True)

Source from the content-addressed store, hash-verified

391 return ' '.join(self.formatweekday(i, width) for i in self.iterweekdays())
392
393 def formatmonthname(self, theyear, themonth, width, withyear=True):
394 """
395 Return a formatted month name.
396 """
397 _validate_month(themonth)
398
399 s = standalone_month_name[themonth]
400 if withyear:
401 s = "%s %r" % (s, theyear)
402 return s.center(width)
403
404 def prmonth(self, theyear, themonth, w=0, l=0):
405 """

Callers 10

formatmonthMethod · 0.95
formatyearMethod · 0.95
formatmonthnameMethod · 0.45
formatmonthnameMethod · 0.45
formatmonthMethod · 0.45
formatyearMethod · 0.45
test_formatmonthnameMethod · 0.45

Calls 2

_validate_monthFunction · 0.85
centerMethod · 0.45