mirror of
https://gitee.com/dromara/hutool.git
synced 2025-07-15 14:04:33 +08:00
add method
This commit is contained in:
parent
e779a9a74c
commit
3d014d5db9
@ -1877,6 +1877,10 @@ public class DateUtil extends CalendarUtil {
|
|||||||
return CollUtil.newArrayList((Iterable<DateTime>) range(start, end, unit));
|
return CollUtil.newArrayList((Iterable<DateTime>) range(start, end, unit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static List<DateTime> rangeToList(Date start, Date end, final DateField unit, int step) {
|
||||||
|
return CollUtil.newArrayList((Iterable<DateTime>) new DateRange(start, end, unit, step));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过生日计算星座
|
* 通过生日计算星座
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user