feat:预炸

This commit is contained in:
苏竹红
2025-06-24 11:34:43 +08:00
parent 1dab792aad
commit 7eb5bf8059
9 changed files with 181 additions and 18 deletions

View File

@@ -168,4 +168,12 @@ public class CoolDateUtils {
return lastMonthSameDay.format(getDateFormatter(DATE_FORMAT_DAY));
}
public static long getMinutesBetween(Date startDate, Date endDate) {
Instant start = startDate.toInstant();
Instant end = endDate.toInstant();
Duration duration = Duration.between(start, end);
return duration.toMinutes();
}
}