I’‘ve been investigating smack API for use in a project. The Packet.toXML() method doesn’‘t seem to have a timestamp associated with it. Does XMPP messages have a notion of a timestamp? If so, is there any way to access it from the API? Looking over the API, it’'s not evident on if getting the timestamp is possible.
Generally speaking, no, there are no timestamps associated with packets. Some packets do contain timestamps though, for instance offline messages delivered from the server contain timestamps.