A PHP representation of the CQL time type.

Implements

Methods

__construct

( mixed $nanoseconds )

Creates a new Dse\Time object

Parameters:
Name Type Details
$nanoseconds int|string

Number of nanoseconds since last microsecond

Dse\Type

type

( )

The type of this date.

Returns:
Type Details
Dse\Type
int

seconds

( )
Returns:
Type Details
int
string

__toString

( )
Returns:
Type Details
string

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

static Dse\Time

fromDateTime

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