Calendar.Set Method

Definition

Overloads

Set(Int32, Int32, Int32, Int32, Int32, Int32)

Sets the values for the fields year, month, date, hour, minute, and second.

Set(CalendarField, Int32)

Sets the time field with the given value.

Set(Int32, Int32, Int32)

Sets the values for the fields year, month, and date.

Set(Int32, Int32, Int32, Int32, Int32)

Sets the values for the fields year, month, date, hour, and minute.

Set(Int32, Int32, Int32, Int32, Int32, Int32)

Sets the values for the fields year, month, date, hour, minute, and second.

[Android.Runtime.Register("set", "(IIIIII)V", "", ApiSince=24)]
public void Set (int year, int month, int date, int hour, int minute, int second);
[<Android.Runtime.Register("set", "(IIIIII)V", "", ApiSince=24)>]
member this.Set : int * int * int * int * int * int -> unit

Parameters

year
Int32

the value used to set the YEAR time field.

month
Int32

the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.

date
Int32

the value used to set the DATE time field.

hour
Int32

the value used to set the HOUR_OF_DAY time field.

minute
Int32

the value used to set the MINUTE time field.

second
Int32

the value used to set the SECOND time field.

Attributes

Remarks

Sets the values for the fields year, month, date, hour, minute, and second. Previous values of other fields are retained. If this is not desired, call #clear first.

Java documentation for android.icu.util.Calendar.set(int, int, int, int, int, int).

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

Set(CalendarField, Int32)

Sets the time field with the given value.

[Android.Runtime.Register("set", "(II)V", "", ApiSince=24)]
public void Set (Android.Icu.Util.CalendarField field, int value);
[<Android.Runtime.Register("set", "(II)V", "", ApiSince=24)>]
member this.Set : Android.Icu.Util.CalendarField * int -> unit

Parameters

field
CalendarField

the given time field.

value
Int32

the value to be set for the given time field.

Attributes

Remarks

Sets the time field with the given value.

Java documentation for android.icu.util.Calendar.set(int, int).

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

Set(Int32, Int32, Int32)

Sets the values for the fields year, month, and date.

[Android.Runtime.Register("set", "(III)V", "", ApiSince=24)]
public void Set (int year, int month, int date);
[<Android.Runtime.Register("set", "(III)V", "", ApiSince=24)>]
member this.Set : int * int * int -> unit

Parameters

year
Int32

the value used to set the YEAR time field.

month
Int32

the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.

date
Int32

the value used to set the DATE time field.

Attributes

Remarks

Sets the values for the fields year, month, and date. Previous values of other fields are retained. If this is not desired, call #clear() first.

Java documentation for android.icu.util.Calendar.set(int, int, int).

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

Set(Int32, Int32, Int32, Int32, Int32)

Sets the values for the fields year, month, date, hour, and minute.

[Android.Runtime.Register("set", "(IIIII)V", "", ApiSince=24)]
public void Set (int year, int month, int date, int hour, int minute);
[<Android.Runtime.Register("set", "(IIIII)V", "", ApiSince=24)>]
member this.Set : int * int * int * int * int -> unit

Parameters

year
Int32

the value used to set the YEAR time field.

month
Int32

the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January.

date
Int32

the value used to set the DATE time field.

hour
Int32

the value used to set the HOUR_OF_DAY time field.

minute
Int32

the value used to set the MINUTE time field.

Attributes

Remarks

Sets the values for the fields year, month, date, hour, and minute. Previous values of other fields are retained. If this is not desired, call #clear() first.

Java documentation for android.icu.util.Calendar.set(int, int, int, int, int).

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