code: public static int getHour(Date date) {
          Calendar c = Calendar.getInstance();
          c.setTime(date);
          return c.get(Calendar.HOUR_OF_DAY);
      }
docs: Get the hour of the date
  
  @param date date
  @return hour of the date