Timeuuid
final class Timeuuid implements Value, UuidInterface (View source)
A PHP representation of the CQL timeuuid
datatype
Methods
__construct(int $timestamp)
Creates a timeuuid from a given timestamp or current time.
string
__toString()
Returns this timeuuid as string.
string
uuid()
Returns this timeuuid as string.
int
version()
Returns the version of this timeuuid.
int
time()
Unix timestamp.
toDateTime()
Converts current timeuuid to PHP DateTime.
Details
__construct(int $timestamp)
Creates a timeuuid from a given timestamp or current time.
string
__toString()
Returns this timeuuid as string.
Type
type()
The type of this timeuuid.
string
uuid()
Returns this timeuuid as string.
int
version()
Returns the version of this timeuuid.
int
time()
Unix timestamp.
DateTime
toDateTime()
Converts current timeuuid to PHP DateTime.