String time = "1718967508591";
long time1 = Long.valueOf(time);
Timestamp ts = new Timestamp(time1);
Instant purposeEndTimeMax = ts.toInstant();
字符串类型的时间戳转换为Instant类型
最新推荐文章于 2024-12-30 00:53:45 发布
String time = "1718967508591";
long time1 = Long.valueOf(time);
Timestamp ts = new Timestamp(time1);
Instant purposeEndTimeMax = ts.toInstant();