获取时间戳

获取到秒的时间戳

Instant.now().getEpochSecond();//10

//毫秒级时间戳

System.currentTimeMillis()

原文地址:https://www.cnblogs.com/ZenoPan/p/9674486.html