java中LocalDateTime如何转换成Long型的时间戳?

提问者:帅平 问题分类:微服务
java中LocalDateTime如何转换成Long型的时间戳?
2 个回答
披起头发是娇弱
披起头发是娇弱
Long time = ${localdatetime} .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();
发布于:1年前 (2023-11-10) IP属地:四川省
我来回答