//计算某日(时间戳)到今天的天数
Timestamp rerunTime = byRealm.getRerunTime();
Long time = rerunTime.getTime();
//获取到日期(如:2020-11-29)
LocalDate localDate = Instant.ofEpochMilli(time).atZone(ZoneOffset.ofHours(8)).toLocalDate();
//计算到当前日期时间的天数
Long dayTime = LocalDate.now().until(localDate, ChronoUnit.DAYS);
//计算两个日期之间的天数(LocalDate startDate, LocalDate endDate)
startDate.until(endDate, ChronoUnit.DAYS);