开发者

ActionEvent getWhen

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜