public static int getHour ( Date timeFrom ) { Calendar instance = Calendar . getInstance ( ) ; instance . setTime ( timeFrom ) ; int hour = instance . get ( Calendar . HOUR ) ; return hour ; }
Gets the hour .