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.

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.

toDateTime()

Converts current timeuuid to PHP DateTime.

Details

__construct(int $timestamp)

Creates a timeuuid from a given timestamp or current time.

Parameters

int $timestamp

Unix timestamp

string __toString()

Returns this timeuuid as string.

Return Value

string timeuuid

Type type()

The type of this timeuuid.

Return Value

Type

string uuid()

Returns this timeuuid as string.

Return Value

string

uuid as string

int version()

Returns the version of this timeuuid.

Return Value

int

version of this uuid

int time()

Unix timestamp.

Return Value

int seconds

See also

time

DateTime toDateTime()

Converts current timeuuid to PHP DateTime.

Return Value

DateTime

PHP representation