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

Method formatday

Lib/calendar.py:476–484  ·  view source on GitHub ↗

Return a day as a table cell.

(self, day, weekday)

Source from the content-addressed store, hash-verified

474 cssclass_year = "year"
475
476 def formatday(self, day, weekday):
477 """
478 Return a day as a table cell.
479 """
480 if day == 0:
481 # day outside month
482 return '<td class="%s">&nbsp;</td>' % self.cssclass_noday
483 else:
484 return '<td class="%s">%d</td>' % (self.cssclasses[weekday], day)
485
486 def formatweek(self, theweek):
487 """

Callers 1

formatweekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected