开发者

ActionEvent getWhen

开发者 https://www.devze.com 2023-01-15 17:33 出处:网络
How c开发者_运维问答an I convert the long timestamp returned from getWhen into a readable date and time?You could try:

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

精彩评论

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