final class Time implements Value (View source)

A PHP representation of the CQL time type.

Methods

__construct(int|string $nanoseconds)

Creates a new Time object

static Time
fromDateTime(DateTime $datetime)

No description

type()

The type of this date.

int
seconds()

No description

string
__toString()

No description

Details

__construct(int|string $nanoseconds)

Creates a new Time object

Parameters

int|string $nanoseconds

Number of nanoseconds since last microsecond

static Time fromDateTime(DateTime $datetime)

No description

Parameters

DateTime $datetime

Return Value

Time

Type type()

The type of this date.

Return Value

Type

int seconds()

No description

Return Value

int

string __toString()

No description

Return Value

string

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