A PHP representation of the CQL timeuuid datatype

Implements

Methods

__construct

( int $timestamp = null )

Creates a timeuuid from a given timestamp or current time.

Parameters:
Name Type Details
$timestamp int

Unix timestamp

Cassandra\Type

type

( )

The type of this timeuuid.

Returns:
Type Details
Cassandra\Type
string

__toString

( )

Returns this timeuuid as string.

Returns:
Type Details
string

timeuuid

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