def getprettydate(self):
        '''Return pretty printed date, with suffixes (st, nd) and no leading zeros'''
        posttimedt = self.getposttimedt()
        prettytime = str(int(posttimedt.strftime("%I")))+':'+posttimedt.strftime("%M %p")
        daysuffixes = ['st','nd','rd'] + 17*['th'] + ['st','nd','rd'] + 7*['th'] + ['st'] 
        prettydate = str(int(posttimedt.strftime("%d")))+daysuffixes[int(posttimedt.strftime("%d"))-1]+posttimedt.strftime(" %B %Y")
        return prettytime+' '+prettydate
dataset/ETHPy150Open mikemaccana/imeveryone/usermessages.py/Message.getprettydate/original