rfc4122-uuidv6.rst 981 B

12345678910111213141516171819202122232425262728293031
  1. .. _reference.rfc4122.uuidv6:
  2. ===============
  3. Rfc4122\\UuidV6
  4. ===============
  5. .. php:namespace:: Ramsey\Uuid\Rfc4122
  6. .. php:class:: UuidV6
  7. Implements :php:interface:`Ramsey\\Uuid\\Rfc4122\\UuidInterface`.
  8. UuidV6 represents a :ref:`version 6, reordered time UUID
  9. <rfc4122.version6>`. In addition to providing the methods defined on the
  10. interface, this class additionally provides the following methods.
  11. .. php:method:: getDateTime()
  12. :returns: A date object representing the timestamp associated with the UUID
  13. :returntype: ``\DateTimeInterface``
  14. .. php:method:: toUuidV1()
  15. :returns: A version 1 UUID, converted from this version 6 UUID
  16. :returntype: Ramsey\\Uuid\\Rfc4122\\UuidV1
  17. .. php:staticmethod:: fromUuidV1()
  18. :param Ramsey\\Uuid\\Rfc4122\\UuidV1 $uuidV1: A version 1 UUID
  19. :returns: A version 6 UUID, converted from the given version 1 UUID
  20. :returntype: Ramsey\\Uuid\\Rfc4122\\UuidV6