def unwrapTimastamp(self, tlv):
     if isinstance(tlv, TLVAmqp):
         code = tlv.getCode()
         if code != AMQPType.TIMESTAMP:
             raise ValueError('Error trying to parse TIMESTAMP: received ' +
                              str(tlv.getCode()))
         return util.getLong(tlv.getValue())
 def getLong(self):
     return util.getLong(self.value)