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

Method formatweekheader

Lib/calendar.py:387–391  ·  view source on GitHub ↗

Return a header for a week.

(self, width)

Source from the content-addressed store, hash-verified

385 return names[day][:width].center(width)
386
387 def formatweekheader(self, width):
388 """
389 Return a header for a week.
390 """
391 return ' '.join(self.formatweekday(i, width) for i in self.iterweekdays())
392
393 def formatmonthname(self, theyear, themonth, width, withyear=True):
394 """

Callers 8

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

Calls 3

formatweekdayMethod · 0.95
iterweekdaysMethod · 0.80
joinMethod · 0.45

Tested by 4

get_weekday_namesMethod · 0.36
test_formatweek_headMethod · 0.36