Nonstandard\UuidV6¶
-
class
Ramsey\Uuid\Nonstandard\
UuidV6
¶ Implements
Ramsey\Uuid\Rfc4122\UuidInterface
.While in the Nonstandard sub-namespace, UuidV6 implements the same interface as the RFC 4122 UUIDs. This is because the definition for version 6 UUIDs is currently in draft form, with the intent to update RFC 4122.
UuidV6 represents a version 6, ordered-time UUID. In addition to providing the methods defined on the interface, this class additionally provides the following methods.
-
getDateTime
()¶ - Returns
A date object representing the timestamp associated with the UUID
- Return type
\DateTimeInterface
-
toUuidV1
()¶ - Returns
A version 1 UUID, converted from this version 6 UUID
- Return type
-
static
fromUuidV1
¶ - Parameters
$uuidV1 (Ramsey\Uuid\Rfc4122\UuidV1) – A version 1 UUID
- Returns
A version 6 UUID, converted from the given version 1 UUID
- Return type
-