调通听接口,未测试

This commit is contained in:
2024-04-27 17:14:44 +08:00
parent bf7d337b99
commit b58a92a381
26 changed files with 415 additions and 240 deletions
@@ -1714,6 +1714,29 @@ public final class TimeUtil {
}
}
/**
* 比较时间大小
*
* @param compareDate
* @return
*/
public static boolean compareDate( String compareDate, DateFormat format) {
DateFormat df = format;
try {
Date now = df.parse(getNowString(format)) ;
Date compare = df.parse(compareDate);
if (now.after(compare)) {
return true;
} else {
return false;
}
} catch (ParseException e) {
e.printStackTrace();
return false;
}
}
/**
* 比较时间大小
*