Java返回当前时间戳(10位) 代码如下: /** * 返回当前时间戳(10位) * @return 时间戳 */ public static Integer getCurrentTimestamp() { return Math.toIntExact(System.currentTimeMillis() / 1000); }