|
@@ -30,6 +30,10 @@ public class Dateutils {
|
|
|
if (dEnd.before(dBegin)){
|
|
|
return lDate;
|
|
|
}
|
|
|
+ if(dEnd.compareTo(dBegin) == 0){
|
|
|
+ lDate.add(dEnd);
|
|
|
+ return lDate;
|
|
|
+ }
|
|
|
Calendar calBegin = Calendar.getInstance();
|
|
|
// 使用给定的 Date 设置此 Calendar 的时间
|
|
|
calBegin.setTime(dBegin);
|
|
@@ -46,6 +50,7 @@ public class Dateutils {
|
|
|
lDate.add(time);
|
|
|
calBegin.add(rule, 1);
|
|
|
}
|
|
|
+
|
|
|
return lDate;
|
|
|
}
|
|
|
public static List<String> findDatesStr(Date dBegin, Date dEnd, int rule) {
|