protected static void setTime ( int time , Calendar cal ) { // ((Hour * 64) + Minutes) * 64 + seconds int hour = time / ( 64 * 64 ) ; time -= hour * ( 64 * 64 ) ; int minute = time / 64 ; time -= minute * 64 ; // second cal . set ( Calendar . HOUR_OF_DAY , hour ) ; cal . set ( Calendar . MINUTE , minute ) ; cal . set ( Calendar . SECOND , time ) ; }
Sets hour minute and second of the given calendar making use of of the time representation defined in EXI format