Exemple #1
0
  public static boolean IsEventToday(Event event) {
    final int weekDay = GetCurrentDayOfWeek();

    if (event.getStart() > GetCurrentTime() && event.isRepeatedOnWeekday(weekDay)) {
      return true;
    }

    return false;
  }
Exemple #2
0
  public static boolean IsDateTomorrow(Event event) {
    final int nextWeekDay = (GetCurrentDayOfWeek() + 1) % NUM_WEEKDAYS;

    return !IsEventToday(event) && event.isRepeatedOnWeekday(nextWeekDay);
  }