asmck消息时间

Message msg = (Message) packet;

DelayInformation delayInfo = (DelayInformation) msg.getExtension("x", "jabber:x:delay");

String time = null;

   if (delayInfo != null) {

 time = HelperUtil.messageTimeConvert(delayInfo.getStamp().getTime());

} else {

 time = HelperUtil.messageTime();

}


你可能感兴趣的:(asmck消息时间)