Udostępnij za pośrednictwem


Calendar.Time Property

Definition

Returns a Date object representing this Calendar's time value (millisecond offset from the "#Epoch">Epoch"). -or- Sets this Calendar's time with the given Date.

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

Property Value

a Date representing the time value.

Attributes

Exceptions

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

Remarks

Property getter documentation:

Java documentation for java.util.Calendar.getTime().

Property setter documentation:

Java documentation for java.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