Time.Set Method

Definition

Overloads

Set(Time)

Copy the value of that to this Time object.

Set(Int64)

Sets the fields in this Time object given the UTC milliseconds.

Set(Int32, Int32, Int32)

Sets the date from the given fields.

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

Sets the fields.

Set(Time)

Copy the value of that to this Time object.

[Android.Runtime.Register("set", "(Landroid/text/format/Time;)V", "GetSet_Landroid_text_format_Time_Handler")]
public virtual void Set (Android.Text.Format.Time? that);
[<Android.Runtime.Register("set", "(Landroid/text/format/Time;)V", "GetSet_Landroid_text_format_Time_Handler")>]
abstract member Set : Android.Text.Format.Time -> unit
override this.Set : Android.Text.Format.Time -> unit

Parameters

that
Time
Attributes

Remarks

Copy the value of that to this Time object. No normalization happens.

Java documentation for android.text.format.Time.set(android.text.format.Time).

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(Int64)

Sets the fields in this Time object given the UTC milliseconds.

[Android.Runtime.Register("set", "(J)V", "GetSet_JHandler")]
public virtual void Set (long millis);
[<Android.Runtime.Register("set", "(J)V", "GetSet_JHandler")>]
abstract member Set : int64 -> unit
override this.Set : int64 -> unit

Parameters

millis
Int64

the time in UTC milliseconds since the epoch.

Attributes

Remarks

Sets the fields in this Time object given the UTC milliseconds. After this method returns, all the fields are normalized. This also sets the "isDst" field to the correct value.

Java documentation for android.text.format.Time.set(long).

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 date from the given fields.

[Android.Runtime.Register("set", "(III)V", "GetSet_IIIHandler")]
public virtual void Set (int monthDay, int month, int year);
[<Android.Runtime.Register("set", "(III)V", "GetSet_IIIHandler")>]
abstract member Set : int * int * int -> unit
override this.Set : int * int * int -> unit

Parameters

monthDay
Int32

the day of the month (in the range [1,31])

month
Int32

the zero-based month number (in the range [0,11])

year
Int32

the year

Attributes

Remarks

Sets the date from the given fields. Also sets allDay to true. Sets weekDay, yearDay and gmtoff to 0, and isDst to -1. Call #normalize(boolean) if you need those.

Java documentation for android.text.format.Time.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, Int32)

Sets the fields.

[Android.Runtime.Register("set", "(IIIIII)V", "GetSet_IIIIIIHandler")]
public virtual void Set (int second, int minute, int hour, int monthDay, int month, int year);
[<Android.Runtime.Register("set", "(IIIIII)V", "GetSet_IIIIIIHandler")>]
abstract member Set : int * int * int * int * int * int -> unit
override this.Set : int * int * int * int * int * int -> unit

Parameters

second
Int32
minute
Int32
hour
Int32
monthDay
Int32

the day of the month (in the range [1,31])

month
Int32

the zero-based month number (in the range [0,11])

year
Int32

the year

Attributes

Remarks

Sets the fields. Sets weekDay, yearDay and gmtoff to 0, and isDst to -1. Call #normalize(boolean) if you need those.

Java documentation for android.text.format.Time.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