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

Method formatday

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

Returns a formatted day.

(self, day, weekday, width)

Source from the content-addressed store, hash-verified

305 print(self.formatweek(theweek, width), end='')
306
307 def formatday(self, day, weekday, width):
308 """
309 Returns a formatted day.
310 """
311 if day == 0:
312 s = ''
313 else:
314 s = '%2i' % day # right-align single-digit days
315 return s.center(width)
316
317 def formatweek(self, theweek, width):
318 """

Callers 1

formatweekMethod · 0.95

Calls 1

centerMethod · 0.45

Tested by

no test coverage detected