Inserts a Date object at the given index.

@param index the index. This value must not exceed the bounds of the array.
@param value the Date object
@return The self object
350901
@NonNull
    @Override
    public MutableArray insertDate(int index, Date value) {
        return insertValue(index, value);
    }
1070877
public Object record(int index, Object value) {
    realizeNas(index + 1, null);
    values.set(index, value);

    boolean foundThisCallOnStack = false;
    while (!startedRecordings.isEmpty()){
      final Integer indexFromStack = startedRecordings.pop();
      if (indexFromStack==index){
        foundThisCallOnStack = true;
        break;
      }
    }
    if (!foundThisCallOnStack){
      throw new IllegalStateException("Did not find call #"+index+" on stack. Invalid call of record method?");
    }

    return value;
  }
1064547
public void setValue(int index, byte[] value) throws IOException {
        if (index >= structure.valueSizes.size()) {
            throw new IOException("Index " + index + " is out of range.");
        }
        int length = structure.valueSizes.get(index);
        if (value.length != length) {
            throw new IOException("The length of the given value is not equal to the expected one. (" + value.length
                    + "!=" + length + ")");
        }
        Bytes.putBytes(this.value, structure.valueByteOffsets.get(index), value, 0, value.length);
    }
825885
public function setValue($value, $index = null)
    {
        if ($index === null) {
            $this->value = Arr::cast($value);
        }
        else {
            $this->value[$index] = $value;
        }
        return $this;
    }
90693
@Override
    public DateTime getDateTime(int index) {
        return new DateTime(rows.get(row).getString(index));
    }
901113
public static Object setEL(Object o, int index, Object value) {
	try {
	    return set(o, index, value);
	}
	catch (ArrayUtilException e) {
	    return null;
	}
    }
389624
def insert(self, index, value):
        
        def insert_trans(pipe):
            len_self = self.__len__(pipe)
            if (self.maxlen is not None) and (len_self >= self.maxlen):
                raise IndexError

            if index == 0:
                self._insert_left(value, pipe)
            else:
                self._insert_middle(index, value, pipe=pipe)

        self._transaction(insert_trans)
686752
public void setFinish(int index, Date value)
   {
      set(selectField(AssignmentFieldLists.CUSTOM_FINISH, index), value);
   }
588844
public void setEnterpriseDate(int index, Date value)
   {
      set(selectField(AssignmentFieldLists.ENTERPRISE_DATE, index), value);
   }
224741
def insert(index, value)
      index = validate_index_range(index)

      if index < @entry_counter
        # Insert in between existing elements
        @store.transaction do
          @root.insert(index, value)
          self.entry_counter += 1
        end
      else
        self[index] = value
      end
    end
970966
public void setFMDate(String value) {
        final long multiplier = 100000000;
        Calendar cal = Calendar.getInstance();
        double val = Double.parseDouble(value);
        
        if (val < 1000000D || val > 9999999D) {
            throw new IllegalArgumentException();
        }
        
        long date = (long) Math.floor(val * multiplier);
        hasTime = date % multiplier != 0;
        date = setCalendar(cal, Calendar.MILLISECOND, date, 100);
        date = setCalendar(cal, Calendar.SECOND, date, 100);
        date = setCalendar(cal, Calendar.MINUTE, date, 100);
        date = setCalendar(cal, Calendar.HOUR_OF_DAY, date, 100);
        date = setCalendar(cal, Calendar.DAY_OF_MONTH, date, 100);
        date = setCalendar(cal, Calendar.MONTH, date - 1, 100);
        date = setCalendar(cal, Calendar.YEAR, date + 1700, 10000);
        setTime(cal.getTimeInMillis());
    }
850051
public static Object setOrAppend(Object array, int index, Object value) {
		if(index < length(array)) {
			Array.set(array, index, value);
			return array;
		}else {
			return append(array, value);
		}
	}
562845
public void setEnterpriseDate(int index, Date value)
   {
      set(selectField(TaskFieldLists.ENTERPRISE_DATE, index), value);
   }
857456
@Override
    public ElementOperator<PlainDate> newValue(V value) {

        return new DateOperator(this, ElementOperator.OP_NEW_VALUE, value);

    }
1344403
public JSONArray put(int index, Map<String, Object> value) throws JSONException {
        this.put(index, new JSONObject(value));
        return this;
    }
632701
public static byte[] insert (byte[] values, byte value, int index)
    {
        byte[] nvalues = new byte[values.length+1];
        if (index > 0) {
            System.arraycopy(values, 0, nvalues, 0, index);
        }
        nvalues[index] = value;
        if (index < values.length) {
            System.arraycopy(values, index, nvalues, index+1, values.length-index);
        }
        return nvalues;
    }
1206716
public function insert($index, $value) {
		
		if($this->_ReadOnly){
			throw new ReadOnlyException(\get_called_class() . ' is read only');
		}
		
		//Permit 0-index insertion
		if(!$this->offsetExists($index)){
			throw new \OutOfRangeException('$index is invalid');
		}
		
		\array_splice($this->_Arr, $index, 0, array($value));
		
		return $this;
		
	}