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

Method formatweekday

Lib/calendar.py:358–366  ·  view source on GitHub ↗

Returns a formatted week day name.

(self, day, width)

Source from the content-addressed store, hash-verified

356 return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek)
357
358 def formatweekday(self, day, width):
359 """
360 Returns a formatted week day name.
361 """
362 if width >= 9:
363 names = day_name
364 else:
365 names = day_abbr
366 return names[day][:width].center(width)
367
368 def formatweekheader(self, width):
369 """

Callers 3

formatweekheaderMethod · 0.95
formatweekdayMethod · 0.45
formatweekdayMethod · 0.45

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected