开课吧 互联网全链路产品设计2022
Date转LocalDate
Date date = new Date();System.out.println("LocalDateTime():" + (new Date()).toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime());
11.5 时间戳转LocalDateTime
long timestamp = System.currentTimeMillis();Instant instant1 = Instant.ofEpochMilli(timestamp);