private static int bytesToInt(byte[] bytes, int offset) {
    return ((0xFF & bytes[offset]) << 24)
        | ((0xFF & bytes[offset + 1]) << 16)
        | ((0xFF & bytes[offset + 2]) << 8)
        | (0xFF & bytes[offset + 3]);
  }
@param bytes
@param offset
@return integer represented by the four bytes in <code>bytes</code>
beginning at <code>offset</code>
serde/src/java/org/apache/hadoop/hive/serde2/io/TimestampLocalTZWritable.java