PHP Class Cassandra\Time

Inheritance: implements cassandra\Value
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

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

nanoseconds() public méthode

public nanoseconds ( ) : integer
Résultat 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 méthode

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

type() public méthode

The type of this date.
public type ( ) : cassandra\Type
Résultat cassandra\Type