def getrank(self):
        '''Get rank for message. Based on http://amix.dk/blog/post/19574 (Reddit style)
        '''
        order = log(max(abs(self.score), 1), 10)
        sign = 1 if self.score > 0 else -1 if self.score < 0 else 0
        seconds =  time.mktime(self.getposttimedt().timetuple()) - 1134028003
        rank = round(order + sign * seconds / 45000, 7)
        return rank
dataset/ETHPy150Open mikemaccana/imeveryone/usermessages.py/Message.getrank/original