开发者

convert jms time stamp to current date and time

开发者 https://www.devze.com 2023-02-18 11:34 出处:网络
I need to know when the message has been received thus i\'m printing开发者_运维技巧 the jms timestamp i.emsg.getJMSTimestamp() but this returns some number in milliseconds like1300339215983. I dont un

I need to know when the message has been received thus i'm printing开发者_运维技巧 the jms timestamp i.e msg.getJMSTimestamp() but this returns some number in milliseconds like 1300339215983. I dont undersatnd what value it is. How do i convert it to current standard date and time.

Thanks.


java.util.Date = new java.util.Date(msg.getJMSTimestamp());
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号