Есть пример кода:
typedef union _TypeUn{
__int32 i;
unsigned char Byte[4];
} TypeUn;
void ConvertByteToInt(char * bytes, char * StrInt)
{
 TypeUn tc;
 char znak = ' ';
 tc.Byte[0] = bytes[0];
 tc.Byte[1] = bytes[1];
 tc.Byte[2] = bytes[2];
 tc.Byte[3] = bytes[3];
 int h,m,s,f;
 if( tc.i < 0 )
 {
   znak = '-';
   tc.i = abs(tc.i);
 }
 else
   znak = '+';
 tc.i >>= 2;
 ConvertToTime(tc.i,h,m,s,f);
 sprintf(StrInt,"%c%02d:%02d:%02d:%02d",znak,h,m,s,f);
}




