mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-28 04:31:57 +08:00
Merge remote-tracking branch 'upstream/master' into dev_lcw
# Conflicts: # pom.xml # ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysUserController.java # ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
This commit is contained in:
@@ -136,6 +136,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)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算时间差
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user