账号密码支持自定义更新周期

This commit is contained in:
RuoYi
2020-10-15 17:34:26 +08:00
parent e0523d1c2d
commit 471c8825ba
7 changed files with 76 additions and 14 deletions

View File

@ -131,6 +131,14 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
return new Date(time);
}
/**
* 计算相差天数
*/
public static int differentDaysByMillisecond(Date date1, Date date2)
{
return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)));
}
/**
* 计算两个时间差
*/