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

Method formatweekday

Lib/calendar.py:377–385  ·  view source on GitHub ↗

Returns a formatted week day name.

(self, day, width)

Source from the content-addressed store, hash-verified

375 return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek)
376
377 def formatweekday(self, day, width):
378 """
379 Returns a formatted week day name.
380 """
381 if width >= max(map(len, day_name)):
382 names = day_name
383 else:
384 names = day_abbr
385 return names[day][:width].center(width)
386
387 def formatweekheader(self, width):
388 """

Callers 3

formatweekheaderMethod · 0.95
formatweekdayMethod · 0.45
formatweekdayMethod · 0.45

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected