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

Method formatday

Lib/calendar.py:361–369  ·  view source on GitHub ↗

Returns a formatted day.

(self, day, weekday, width)

Source from the content-addressed store, hash-verified

359 print(self.formatweek(theweek, width), end='')
360
361 def formatday(self, day, weekday, width):
362 """
363 Returns a formatted day.
364 """
365 if day == 0:
366 s = ''
367 else:
368 s = '%2i' % day # right-align single-digit days
369 return s.center(width)
370
371 def formatweek(self, theweek, width):
372 """

Callers 2

formatweekMethod · 0.95
formatweekMethod · 0.45

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected