question: static public boolean isSameHour ( Timestamp one , Timestamp two ) { GregorianCalendar calOne = new GregorianCalendar ( ) ; if ( one != null ) calOne . setTimeInMillis ( one . getTime ( ) ) ; GregorianCalendar calTwo = new GregorianCalendar ( ) ; if ( two != null ) calTwo . setTimeInMillis ( two . getTime ( ) ) ; if ( calOne . get ( Calendar . YEAR ) == calTwo . get ( Calendar . YEAR ) && calOne . get ( Calendar . MONTH ) == calTwo . get ( Calendar . MONTH ) && calOne . get ( Calendar . DAY_OF_MONTH ) == calTwo . get ( Calendar . DAY_OF_MONTH ) && calOne . get ( Calendar . HOUR_OF_DAY ) == calTwo . get ( Calendar . HOUR_OF_DAY ) ) return true ; return false ; }
target:  Is it the same hour