MCPcopy Index your code
hub / github.com/RustPython/RustPython / formatmonthname

Method formatmonthname

Lib/calendar.py:374–383  ·  view source on GitHub ↗

Return a formatted month name.

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

Source from the content-addressed store, hash-verified

372 return ' '.join(self.formatweekday(i, width) for i in self.iterweekdays())
373
374 def formatmonthname(self, theyear, themonth, width, withyear=True):
375 """
376 Return a formatted month name.
377 """
378 _validate_month(themonth)
379
380 s = month_name[themonth]
381 if withyear:
382 s = "%s %r" % (s, theyear)
383 return s.center(width)
384
385 def prmonth(self, theyear, themonth, w=0, l=0):
386 """

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