Share via


Calendar.Time Property

Definition

Returns this Calendar's current time. -or- Sets this Calendar's current time with the given Date.

public Java.Util.Date? Time { [Android.Runtime.Register("getTime", "()Ljava/util/Date;", "", ApiSince=24)] get; [Android.Runtime.Register("setTime", "(Ljava/util/Date;)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getTime", "()Ljava/util/Date;", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setTime", "(Ljava/util/Date;)V", "", ApiSince=24)>]
member this.Time : Java.Util.Date with get, set

Property Value

the current time.

Attributes

Remarks

Property getter documentation:

Returns this Calendar's current time.

Java documentation for android.icu.util.Calendar.getTime().

Property setter documentation:

Sets this Calendar's current time with the given Date.

Note: Calling setTime with Date(Long.MAX_VALUE) or Date(Long.MIN_VALUE) may yield incorrect field values from #get(int).

Java documentation for android.icu.util.Calendar.setTime(java.util.Date).

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