Revision: 3512
Updated Code
at August 6, 2007 23:16 by ches
Updated Code
if 4 <= day <= 20 or 24 <= day <= 30: suffix = "th" else: suffix = ["st", "nd", "rd"][day % 10 - 1]
Revision: 3511
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 5, 2007 22:38 by ches
Initial Code
if 4 <= day <= 20 or 24 <= day <= 30: suffix = "th" else: suffix = ["st", "nd", "rd"][day % 10 - 1]
Initial URL
http://mail.python.org/pipermail/python-list/2005-July/333218.html
Initial Description
like PHP's 'jS'
Initial Title
python date suffixes for strftime
Initial Tags
date, python
Initial Language
Python