public boolean beforeEveryday(OmniDate compareDate){
  Calendar calendar=Calendar.getInstance();
  calendar.setTime(compareDate.getDate());
  int compareHour=calendar.get(Calendar.HOUR_OF_DAY);
  int compareMinute=calendar.get(Calendar.MINUTE);
  int compareSecond=calendar.get(Calendar.SECOND);
  int compareSecondInDay=compareHour * SECONDS_IN_HOUR + compareMinute * SECONDS_IN_MINUTE + compareSecond;
  calendar.setTime(value);
  int hour=calendar.get(Calendar.HOUR_OF_DAY);
  int minute=calendar.get(Calendar.MINUTE);
  int second=calendar.get(Calendar.SECOND);
  int secondInDay=hour * SECONDS_IN_HOUR + minute * SECONDS_IN_MINUTE + second;
  if (secondInDay <= compareSecondInDay) {
    return true;
  }
  return false;
}

public boolean beforeEveryday ( OmniDate compareDate ) { Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( compareDate . getDate ( ) ) ; int compareHour = calendar . get ( Calendar . HOUR_OF_DAY ) ; int compareMinute = calendar . get ( Calendar . MINUTE ) ; int compareSecond = calendar . get ( Calendar . SECOND ) ; int compareSecondInDay = compareHour * SECONDS_IN_HOUR + compareMinute * SECONDS_IN_MINUTE + compareSecond ; calendar . setTime ( value ) ; int hour = calendar . get ( Calendar . HOUR_OF_DAY ) ; int minute = calendar . get ( Calendar . MINUTE ) ; int second = calendar . get ( Calendar . SECOND ) ; int secondInDay = hour * SECONDS_IN_HOUR + minute * SECONDS_IN_MINUTE + second ; if ( secondInDay <= compareSecondInDay ) { return true ; } return false ; }
only compare the hour minute and second inclusive .
