resolves the date and time based based on a three byte encoded within a max!cube l message . date decoding two byte hex binary 9d0b 1001110100001011 mmmdddddm yyyyyy 100 0 = 1000b = 8d = month 11101 = 11101b = 29d = day 001011 = 1011b = 11d = year-2000 time decoding one byte hex decimal 1f 31 0.5 hours = 15:30 concode_field_sep String HEXES concode_field_sep boolean[] getBits concode_elem_sep int fromHex concode_elem_sep String getStackTrace concode_elem_sep String toHex concode_elem_sep String toHex concode_elem_sep byte[] hexStringToByteArray concode_elem_sep int fromByte concode_elem_sep String getHex
Date function ( int arg0 , int arg1 ) { int loc0 = ( ( arg0 & 0xE000 ) >> 12 ) + ( ( arg0 & 0x80 ) >> 7 ) ; int loc1 = ( arg0 & 0x1F00 ) >> 8 ; int loc2 = ( arg0 & 0x0F ) + 2000 ; int loc3 = ( int ) ( arg1 * 0.5 ) ; int loc4 = ( int ) ( 60 * ( ( arg1 * 0.5 ) - loc3 ) ) ; return new Date ( loc2 , loc0 , loc1 , loc3 , loc4 ) ; }