powered by Jive Software

How can i get the message''s stamp?

A message XML such as:

wap


now ,i want to get the time of this messages to be created,how do ?

Hey doper,

To get the delay information you need to send #getExtension(“x”,“jabber:delay”) to the packet that has the information. This will return an instance of org.jivesoftware.smackx.packet.DelayInformation. You can send the #getStamp message to get the timestamp.

Regards,

– Gato

Thanks;

the method should be sended#getExtension(“x”,“jabber:x:delay”) btw.

_

ye