version property

int get version

The version that was originally multiplexed in timeHighAndVersion.

If this UUID conforms to the structure laid out in RFC 9562 (obsoletes RFC 4122), this will be a number between 1 and 8 with the following descriptions:

  • 1: Gregorian time-based version
  • 2: DCE Security version, with embedded POSIX UUIDs
  • 3: Name-based version with MD5 hashing
  • 4: Randomly generated version
  • 5: Name-based version with SHA-1 hashing
  • 6: Reordered Gregorian time-based version
  • 7: Unix Epoch time-based version
  • 8: Custom formats specified by RFC 9562

Implementation

int get version => timeHighAndVersion >> 12;