A PHP representation of the CQL time type.

Implements

Methods

__construct

( mixed $nanoseconds = 0 )

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

nanoseconds

( )
Returns:
Type Details
int

number of nanoseconds since the last full microsecond since the last full second since the last full minute since the last full hour since midnight

string

__toString

( )
Returns:
Type Details
string

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

static Cassandra\Time

now

( )

Creates a new Cassandra\Time object with the current time.

Static
This method is static
Returns:
Type Details
Cassandra\Time