Share via


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 Date object to represent a point in time that is time 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

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

Attributes

Remarks

Property getter documentation:

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

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

Property setter documentation:

Sets this Date object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT.

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