question: @ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit = cal . minusDays ( dateTimeUnit , 364 ) ; List < Period > periods = Lists . newArrayList ( ) ; for ( int i = 0 ; i < 365 ; i ++ ) { periods . add ( createPeriod ( dateTimeUnit , null ) ) ; dateTimeUnit = cal . plusDays ( dateTimeUnit , 1 ) ; } return periods ; }
target:  Generates the last 365 days where the last one is the day of the given date.