Rfc4122\UuidV2¶
-
class
Ramsey\Uuid\Rfc4122\
UuidV2
¶ Implements
Ramsey\Uuid\Rfc4122\UuidInterface
.UuidV2 represents a version 2, DCE Security UUID. In addition to providing the methods defined on the interface, this class additionally provides the following methods.
-
getDateTime
()¶ Returns a DateTimeInterface instance representing the timestamp associated with the UUID
Caution
It is important to note that version 2 UUIDs suffer from some loss of timestamp precision. See Lossy Timestamps to learn more.
- Returns
A date object representing the timestamp associated with the UUID
- Return type
\DateTimeInterface
-
getLocalDomain
()¶ - Returns
The local domain identifier for this UUID, which is one of
Ramsey\Uuid\Uuid::DCE_DOMAIN_PERSON
,Ramsey\Uuid\Uuid::DCE_DOMAIN_GROUP
, orRamsey\Uuid\Uuid::DCE_DOMAIN_ORG
- Return type
int
-
getLocalDomainName
()¶ - Returns
A string name associated with the local domain identifier (one of “person,” “group,” or “org”)
- Return type
string
-
getLocalIdentifier
()¶ - Returns
The local identifier used when creating this UUID
- Return type
-