示例#1
0
 /** @return the number of days displayed (0 or greater) */
 public int getNumberDaysDisplayed() {
   if (isCanonical()) {
     return new Long(CommonDateOperations.approximateDifference(getEndDate(), getStartDate()))
         .intValue();
   }
   return pathData.getEndDateIndex() - pathData.getStartDateIndex();
 }
示例#2
0
 /** @return */
 public String getPrevDatePhrase() {
   return constructDatePhrase(pathData.getStartDateIndex() - 1, pathData.getEndDateIndex() - 1);
 }
示例#3
0
 /** @return */
 public String getNextDatePhrase() {
   return constructDatePhrase(pathData.getStartDateIndex() + 1, pathData.getEndDateIndex() + 1);
 }