1
获得
Interval
与
Joda-Time什么是最佳方式?
例如:
Interval interval = new Interval(new LocalDate(2015, 01, 01).toDate().getTime(), new LocalDate(2015, 01, 05).toDate().getTime()); //Maybe not the best way to create an Interval...
List<LocalDate> listLocalDate = getListLocalDateFromInterval(interval);
for (LocalDate localDate : listLocalDate) {
System.out.println(localDate);
}
预期结果:
2015-01-01
2015-01-02
2015-01-03
2015-01-04
2015-01-05
你尝试过什么?发布您的任何试验性代码。发布在教程中的代码(如果有的话)。给一些背景:为什么你想要这个? –