Return st, nd, rd, or th for supplied day.
(day)
| 127 | sys.exit(SYS_EXIT_CODE_SUCCESSFUL) |
| 128 | |
| 129 | def getDaySuffix(day): |
| 130 | """Return st, nd, rd, or th for supplied day.""" |
| 131 | |
| 132 | if 4 <= day <= 20 or 24 <= day <= 30: |
| 133 | return 'th' |
| 134 | return ['st', 'nd', 'rd'][day % 10 - 1] |
| 135 | |
| 136 | def printProgramStatus(started, stream=sys.stdout): |
| 137 | """Print program duration information.""" |
no outgoing calls
no test coverage detected