How c开发者_运维问答an I convert the long timestamp returned from getWhen into a readable date and time?
You could try:
System.out.println(new Date(event.getWhen()));
For other representations you can try the SimpleDateFormatter.
By using the Date(long) constructor
加载中,请稍侯......
精彩评论