MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / formatweekday

Method formatweekday

tools/python-3.11.9-amd64/Lib/calendar.py:323–331  ·  view source on GitHub ↗

Returns a formatted week day name.

(self, day, width)

Source from the content-addressed store, hash-verified

321 return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek)
322
323 def formatweekday(self, day, width):
324 """
325 Returns a formatted week day name.
326 """
327 if width >= 9:
328 names = day_name
329 else:
330 names = day_abbr
331 return names[day][:width].center(width)
332
333 def formatweekheader(self, width):
334 """

Callers 3

formatweekheaderMethod · 0.95
formatweekdayMethod · 0.45
formatweekdayMethod · 0.45

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected