使用LocalDateTime计算两个时间的差
LocalDateTime now = LocalDateTime.now();//业务逻辑LocalDateTime end = LocalDateTime.now();Duration duration = Duration.between(now,end);long days = duration.toDays(); //相差的天数long minutes = duration.toMinutes();//相差的分钟数注意一定要使用LocalDateTime类型,使用LocalDat