Compartir a través de


UUID.Timestamp Method

Definition

The timestamp value associated with this UUID.

[Android.Runtime.Register("timestamp", "()J", "")]
public long Timestamp ();
[<Android.Runtime.Register("timestamp", "()J", "")>]
member this.Timestamp : unit -> int64

Returns

The timestamp of this UUID.

Attributes

Exceptions

Remarks

The timestamp value associated with this UUID.

The 60 bit timestamp value is constructed from the time_low, time_mid, and time_hi fields of this UUID. The resulting timestamp is measured in 100-nanosecond units since midnight, October 15, 1582 UTC.

The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException.

Java documentation for java.util.UUID.timestamp().

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