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

Method formatweekheader

Lib/calendar.py:368–372  ·  view source on GitHub ↗

Return a header for a week.

(self, width)

Source from the content-addressed store, hash-verified

366 return names[day][:width].center(width)
367
368 def formatweekheader(self, width):
369 """
370 Return a header for a week.
371 """
372 return ' '.join(self.formatweekday(i, width) for i in self.iterweekdays())
373
374 def formatmonthname(self, theyear, themonth, width, withyear=True):
375 """

Callers 7

formatmonthMethod · 0.95
formatyearMethod · 0.95
formatmonthMethod · 0.45
formatyearMethod · 0.45
test_formatweek_headMethod · 0.45

Calls 3

formatweekdayMethod · 0.95
iterweekdaysMethod · 0.80
joinMethod · 0.45

Tested by 3

test_formatweek_headMethod · 0.36