code: public static int getHour(Date timeFrom) {
  		Calendar instance = Calendar.getInstance();
  		instance.setTime(timeFrom);
  		int hour = instance.get(Calendar.HOUR);
  		return hour;
  
  	}
docs: Gets the hour.
  
  @param timeFrom the time from
  @return the hour