time property
The full "timestamp" of the UUID. Note that parsedTime provides a parsed version of this timestamp, albeit only for v1 and v6 UUIDs.
Definition from RFC 4122
The timestamp is a 60-bit value. For UUID version 1, this is represented by Coordinated Universal Time (UTC) as a count of 100- nanosecond intervals since 00:00:00.00, 15 October 1582 (the date of Gregorian reform to the Christian calendar).
For systems that do not have UTC available, but do have the local time, they may use that instead of UTC, as long as they do so consistently throughout the system. However, this is not recommended since generating the UTC from local time only needs a time zone offset.
For UUID version 3 or 5, the timestamp is a 60-bit value constructed from a name as described in Section 4.3.
For UUID version 4, the timestamp is a randomly or pseudo-randomly generated 60-bit value, as described in Section 4.4.
Implementation
int get time {
if (version != 6) {
return (timeHigh << 48) + (timeMid << 32) + timeLow;
} else {
// Cheating a bit by using the wrongly named accessors here.
return (timeLow << 28) + (timeMid << 12) + timeHigh;
}
}