code: public void setTime(Date minTime, Date maxTime) throws IllegalArgumentException {
          if (minTime != null && maxTime != null && minTime.after(maxTime)) {
              throw new IllegalArgumentException("Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter");
          }
          this.minTime = minTime;
          this.maxTime = maxTime;
      }
docs: sets the current value for the minimum and maximum time
  
  @param minTime minimum time
  @param maxTime maximum time
  @throws IllegalArgumentException if minTime is later than maxTime