Nonstandard\UuidV6

class Ramsey\Uuid\Nonstandard\UuidV6

Attention

Ramsey\Uuid\Nonstandard\UuidV6 is deprecated in favor of Ramsey\Uuid\Rfc4122\UuidV6. Please migrate any code using Nonstandard\UuidV6 to Rfc4122\UuidV6. The interface is otherwise identical.

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

Ramsey\Uuid\Rfc4122\UuidV1

static fromUuidV1
Parameters
Returns

A version 6 UUID, converted from the given version 1 UUID

Return type

Ramsey\Uuid\Rfc4122\UuidV6