(self, day, weekday, width)
return s.center(width)
Returns a formatted day.
Returns a formatted day.
Returns a formatted day .
def formatday(self, day, weekday, width):
        """
        Returns a formatted day.
        """
        if day == 0:
            s = ''
        else:
            s = '%2i' % day             # right-align single-digit days
        return s.center(width)
def formatday ( self , day , weekday , width ) : if day == 0 : s = '' else : s = '%2i' % day # right-align single-digit days return s . center ( width )