示例#1
0
    def __init__(self, id, createDate):
        self.__id = unicode(id)

        jst = Utility.convert_jst_time(createDate)
        # self.__createDate = jst.strftime('%Y年%m月%d日 %H時%M分ごろの絵') とやりたいけれど、unicodeを渡せない
        # 改行して見やすくするために、右辺はカッコで閉じている
        self.__createDate = ( unicode(jst.year) + u'年'
                            + unicode(jst.month) + u'月'
                            + unicode(jst.day) + u'日 '
                            + unicode(jst.hour) + u'時'
                            + unicode(jst.minute) + u'分ごろの絵' )
示例#2
0
    def get_left_length(self):
        jst = Utility.convert_jst_time(self.registerDate)
        offset = self.get_date_offset(jst)

        return unicode(float(self.rankValue - offset) / 10)