Condividi tramite


Calendar.TimeInMillis Property

Definition

Returns this Calendar's time value in milliseconds.

public virtual long TimeInMillis { [Android.Runtime.Register("getTimeInMillis", "()J", "GetGetTimeInMillisHandler")] get; [Android.Runtime.Register("setTimeInMillis", "(J)V", "GetSetTimeInMillis_JHandler")] set; }
[<get: Android.Runtime.Register("getTimeInMillis", "()J", "GetGetTimeInMillisHandler")>]
[<set: Android.Runtime.Register("setTimeInMillis", "(J)V", "GetSetTimeInMillis_JHandler")>]
member this.TimeInMillis : int64 with get, set

Property Value

the current time as UTC milliseconds from the epoch.

Attributes

Exceptions

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

Remarks

Returns this Calendar's time value in milliseconds.

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

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