Returns a formatted day.
(self, day, weekday, width)
| 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 | """ |