public static boolean isFutureTime(Date time) {
    Date now = new Date();
    return time.after(now);
  }
Check if given time is in the future
@param time
@return
ambari-server/src/main/java/org/apache/ambari/server/utils/DateUtils.java