Calendar.Add(CalendarField, Int32) Calendar.Add(CalendarField, Int32) Method

Definition

Adds the given amount to a Calendar field.

[Android.Runtime.Register("add", "(II)V", "GetAdd_IIHandler")]
public abstract void Add (Java.Util.CalendarField field, int amount);
abstract member Add : Java.Util.CalendarField * int -> unit

Parameters

field
CalendarField CalendarField

the Calendar field to modify.

amount
Int32 Int32

Exceptions

if field is DST_OFFSET or ZONE_OFFSET.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to