关于 后端 的文章

Java8 计算时间API

JDK8 计算时间差Period period = Period.between(old, now);period.getYears();period.getMonths();period.getDays();Date转LocalDatefinal Date date = new Date();Instant instant = date.toInstant();instant.atZone(ZoneId.systemDefault()).toLocalDate();DateTimeFormatterDat 2020-08-21 22:57:37 | 阅读数 10