Esempio n. 1
0
 def test_from(self):
     parsed_dt, offset = parse_timestamp('\x00\x00\x00\x00M\x1e`p', 0)
     self.assertEquals(offset, 8)
     self.assertEquals(parsed_dt, datetime(2011, 1, 1))
 def test_from(self):
     parsed_dt, offset = parse_timestamp('\x00\x00\x00\x00M\x1e`p', 0)
     self.assertEquals(offset, 8)
     self.assertEquals(parsed_dt, datetime(2011, 1, 1))
Esempio n. 3
0
 def test_from_to(self):
     dt = datetime(2011, 1, 1, 10, 5)
     dt2, offset = parse_timestamp(dump_timestamp(dt), 0)
     self.assertEquals(dt, dt2)
 def test_from_to(self):
     dt = datetime(2011, 1, 1, 10, 5)
     dt2, offset = parse_timestamp(dump_timestamp(dt), 0)
     self.assertEquals(dt, dt2)