A PHP representation of the CQL timeuuid datatype

Implements

Methods

__construct

( int $timestamp )

Creates a timeuuid from a given timestamp or current time.

Parameters:
Name Type Details
$timestamp int

Unix timestamp

string

__toString

( )

Returns this timeuuid as string.

Returns:
Type Details
string

timeuuid

Dse\Type

type

( )

The type of this timeuuid.

Returns:
Type Details
Dse\Type
string

uuid

( )

Returns this timeuuid as string.

Returns:
Type Details
string

timeuuid

int

version

( )

Returns the version of this timeuuid.

Returns:
Type Details
int

version of this timeuuid

int

time

( )

Unix timestamp.

Returns:
Type Details
int

seconds

See Also:
DateTime

toDateTime

( )

Converts current timeuuid to PHP DateTime.

Returns:
Type Details
DateTime

PHP representation