Timestamp ts = new Timestamp(System.currentTimeMillis());
Date date = new Date();
try {
date = ts;
ystem.out.println(date);
} catch (Exception e) {
e.printStackTrace();
}
Timestamp转Date
最新推荐文章于 2022-10-24 17:06:46 发布
Timestamp ts = new Timestamp(System.currentTimeMillis());
Date date = new Date();
try {
date = ts;
ystem.out.println(date);
} catch (Exception e) {
e.printStackTrace();
}