function Fields::getTimestamp
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Guid/Fields.php \Ramsey\Uuid\Guid\Fields::getTimestamp()
- 11.1.x vendor/ramsey/uuid/src/Rfc4122/Fields.php \Ramsey\Uuid\Rfc4122\Fields::getTimestamp()
Overrides FieldsInterface::getTimestamp
File
-
vendor/
ramsey/ uuid/ src/ Nonstandard/ Fields.php, line 107
Class
- Fields
- Nonstandard UUID fields do not conform to the RFC 4122 standard
Namespace
Ramsey\Uuid\NonstandardCode
public function getTimestamp() : Hexadecimal {
return new Hexadecimal(sprintf('%03x%04s%08s', hexdec($this->getTimeHiAndVersion()
->toString()) & 0xfff, $this->getTimeMid()
->toString(), $this->getTimeLow()
->toString()));
}