@Override public List<Period> generateRollingPeriods(DateTimeUnit dateTimeUnit){
  Calendar cal=getCalendar();
  dateTimeUnit.setDay(1);
  dateTimeUnit=cal.minusMonths(dateTimeUnit,(dateTimeUnit.getMonth() % 2) + 10);
  List<Period> periods=Lists.newArrayList();
  for (int i=0; i < 6; i++) {
    periods.add(createPeriod(dateTimeUnit,cal));
    dateTimeUnit=cal.plusMonths(dateTimeUnit,2);
  }
  return periods;
}

@ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit . setDay ( 1 ) ; dateTimeUnit = cal . minusMonths ( dateTimeUnit , ( dateTimeUnit . getMonth ( ) % 2 ) + 10 ) ; List < Period > periods = Lists . newArrayList ( ) ; for ( int i = 0 ; i < 6 ; i ++ ) { periods . add ( createPeriod ( dateTimeUnit , cal ) ) ; dateTimeUnit = cal . plusMonths ( dateTimeUnit , 2 ) ; } return periods ; }
generates the last 6 bi - months where the last one is the bi - month which the given date is inside .
