Calendar.Get(CalendarField) Calendar.Get(CalendarField) Method

Definition

Returns the value of the given field after computing the field values by calling complete() first.

[Android.Runtime.Register("get", "(I)I", "GetGet_IHandler")]
public virtual int Get (Java.Util.CalendarField field);
abstract member Get : Java.Util.CalendarField -> int
override this.Get : Java.Util.CalendarField -> int

Parameters

Returns

Exceptions

if the fields are not set, the time is not set, and the time cannot be computed from the current field values.

if the field is not inside the range of possible fields. The range is starting at 0 up to FIELD_COUNT.

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