コード例 #1
0
ファイル: treemodel.py プロジェクト: gemagomez/keepnote
 def get_time_text(self, node, attr_key):
     """Returns the string for a timestamp"""
     timestamp = node.get_attr(attr_key, None)
     if timestamp is None:
         return u""
     else:
         return get_str_timestamp(timestamp, formats=self._date_formats)
コード例 #2
0
ファイル: treemodel.py プロジェクト: vatslav/perfectnote
 def get_time_text(self, node, attr_key):
     """Returns the string for a timestamp"""
     timestamp = node.get_attr(attr_key, None)
     if timestamp is None:
         return u""
     else:
         return get_str_timestamp(timestamp, formats=self._date_formats)
コード例 #3
0
ファイル: basetreeview.py プロジェクト: brotchie/keepnote
 def format_timestamp(self, timestamp):
     return (get_str_timestamp(timestamp, formats=self._date_formats)
             if timestamp is not None else u"")
コード例 #4
0
ファイル: basetreeview.py プロジェクト: uid-root/keepnote
 def format_timestamp(self, timestamp):
     return (get_str_timestamp(timestamp, formats=self._date_formats)
             if timestamp is not None else u"")