日期:2014-05-20 浏览次数:20631 次
DateTime start = new DateTime(2011, 10, 12, 8, 0); DateTime end = new DateTime(2011, 10, 12, 20, 0); for(DateTime dt = start.plusHours(1); dt.isBefore(end); dt = dt.plusHours(1)){ System.out.println(dt); }