使用LocalDateTime计算两个时间的差
使用LocalDateTime计算两个时间的差Duration duration = Duration.between(now,end);long days = duration.toDays(); //相差的天数long hours = duration.toHours();//相差的小时数long minutes = duration.toMinutes();//相差的分钟数long millis = duration.toMillis();//相差毫秒数long nanos = durat
复制链接