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

Method formatday

Lib/calendar.py:342–350  ·  view source on GitHub ↗

Returns a formatted day.

(self, day, weekday, width)

Source from the content-addressed store, hash-verified

340 print(self.formatweek(theweek, width), end='')
341
342 def formatday(self, day, weekday, width):
343 """
344 Returns a formatted day.
345 """
346 if day == 0:
347 s = ''
348 else:
349 s = '%2i' % day # right-align single-digit days
350 return s.center(width)
351
352 def formatweek(self, theweek, width):
353 """

Callers 2

formatweekMethod · 0.95
formatweekMethod · 0.45

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected