时间日期类计算出错
场景就是我需要设置一个新的时间,新的时间就是现在的时间往后推迟一天,但是原来的代码逻辑是这样的
LocalDate nextDate = LocalDate.now();
nextDate = nextDate.plusDays(1);
int addSecond = (int) (Duration.between(LocalDate.now
时间日期类计算出错
场景就是我需要设置一个新的时间,新的时间就是现在的时间往后推迟一天,但是原来的代码逻辑是这样的
LocalDate nextDate = LocalDate.now();
nextDate = nextDate.plusDays(1);
int addSecond = (int) (Duration.between(LocalDate.now