如何将从getWhen返回的长timestamp转换为可读的日期和时间?
发布于 2010-09-13 17:23:04
您可以尝试:
System.out.println(new Date(event.getWhen()));对于其他表示,您可以尝试使用SimpleDateFormatter。
发布于 2010-09-13 17:22:55
通过使用Date(long)构造函数
https://stackoverflow.com/questions/3699061
复制相似问题