//获取秒数Long second =LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8"));//获取毫秒数Long milliSecond =LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli();
1.LocalDateTime获取毫秒数//获取秒数Long second = LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8"));//获取毫秒数Long milliSecond = LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli();2.LocalDateTime与String互转//时间转字符串格式化 DateTimeFormatter format