Date.Time Property

Definition

Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. -or- Sets this <code>Date</code> object to represent a point in time that is <code>time</code> milliseconds after January 1, 1970 00:00:00 GMT.

public virtual long Time { [Android.Runtime.Register("getTime", "()J", "GetGetTimeHandler")] get; [Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")] set; }
[<get: Android.Runtime.Register("getTime", "()J", "GetGetTimeHandler")>]
[<set: Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")>]
member this.Time : int64 with get, set

Property Value

Int64

the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this date.

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

Java documentation for java.util.Date.setTime(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