Rfc4122\UuidV6
- class Ramsey\Uuid\Rfc4122\UuidV6
Implements
Ramsey\Uuid\Rfc4122\UuidInterface
.UuidV6 represents a version 6, reordered 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