A PHP representation of the CQL time type.

Implements

Methods

__construct

( mixed $nanoseconds )

Creates a new Cassandra\Time object

Parameters:
Name Type Details
$nanoseconds int|string

Number of nanoseconds since last microsecond

Cassandra\Type

type

( )

The type of this date.

Returns:
Type Details
Cassandra\Type
int

seconds

( )
Returns:
Type Details
int
string

__toString

( )
Returns:
Type Details
string

this date in string format: Cassandra\Time(nanoseconds=$nanoseconds)

static Cassandra\Time

fromDateTime

( DateTime $datetime )
Static
This method is static
Parameters:
Name Type Details
$datetime DateTime
Returns:
Type Details
Cassandra\Time