def test(self):
     self.assert_equal(parse_timestamp('2015-04-19T20:25:00.226410'), datetime(2015, 4, 19, 20, 25, 0, 226410, timezone.utc))
     self.assert_equal(parse_timestamp('2015-04-19T20:25:00'), datetime(2015, 4, 19, 20, 25, 0, 0, timezone.utc))
예제 #2
0
파일: archive.py 프로젝트: aykit/borg
 def ts(self):
     """Timestamp of archive creation in UTC"""
     return parse_timestamp(self.metadata[b'time'])
예제 #3
0
 def ts(self):
     """Timestamp of archive creation in UTC"""
     return parse_timestamp(self.metadata[b'time'])