code: public boolean contains(Timestamp instant) {
          return (start == null || start.compareTo(instant) <= 0) && (end == null || end.compareTo(instant) >= 0);
      }
docs: True if the given time stamp is inside the interval.
  
  @param instant a time stamp
  @return true if inside the interval