📜  将 long 转换为 localdatetime java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.153000             🧑  作者: Mango

代码示例2
long test_timestamp = 1499070300L;
LocalDateTime triggerTime =
       LocalDateTime.ofInstant(Instant.ofEpochSecond(test_timestamp),
                               TimeZone.getDefault().toZoneId());   

System.out.println(triggerTime);