(self, day, width)
return names[day][:width].center(width)
Returns a formatted week day name.
Returns a formatted week day name.
Returns a formatted week day name .
def formatweekday(self, day, width):
        """
        Returns a formatted week day name.
        """
        if width >= 9:
            names = day_name
        else:
            names = day_abbr
        return names[day][:width].center(width)
def formatweekday ( self , day , width ) : if width >= 9 : names = day_name else : names = day_abbr return names [ day ] [ : width ] . center ( width )