示例#1
0
 def test_timestamp(self):
     x = timestamp(1481750076295 / 1000)
     output = self.graphbinary_reader.readObject(
         self.graphbinary_writer.writeObject(x))
     assert x == output
示例#2
0
 def objectify(cls, buff, reader, nullable=True):
     # Python timestamp expects seconds
     return cls.is_null(buff, reader, lambda b, r: statics.timestamp(int64_unpack(b.read(8)) / 1000.0),
                        nullable)