PHP Class Cassandra\Time

Inheritance: implements cassandra\Value
Mostrar archivo Open project: datastax/php-driver

Public Methods

Method Description
__construct ( integer | string $nanoseconds ) Creates a new Time object
__toString ( ) : string
nanoseconds ( ) : integer
now ( ) : Time Creates a new Time object with the current time.
type ( ) : cassandra\Type The type of this date.

Method Details

__construct() public method

Creates a new Time object
public __construct ( integer | string $nanoseconds )
$nanoseconds integer | string Number of nanoseconds since last microsecond

__toString() public method

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

nanoseconds() public method

public nanoseconds ( ) : integer
return integer 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

now() public static method

Creates a new Time object with the current time.
public static now ( ) : Time
return Time

type() public method

The type of this date.
public type ( ) : cassandra\Type
return cassandra\Type