I would like a python datetime object to output (and use the result in django) like this:
Thu the 2nd at 4:30
But I find no way in python to output st, nd, rd, or th like I can with PHP datetime format with the S string (What they call "English Ordinal Suffix") (http://uk.php.net/manual/en/function.date.php).
Is there a built-in way to do this in django/python? strftime isn't good enough (http://docs.python.org/library/datetime.html#strftime-strptime-behavior).
Django has a filter which does what I want, but I want a function, not a filter, to do what I want. Either a django or python function will be fine.