PHP Class Cassandra\Date

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

Méthodes publiques

Méthode Description
__construct ( integer $seconds = null ) Creates a new Date object
__toString ( ) : string
seconds ( ) : integer
toDateTime ( ) : DateTime Converts current date to PHP DateTime.
type ( ) : cassandra\Type The type of this date.

Method Details

__construct() public méthode

Creates a new Date object
public __construct ( integer $seconds = null )
$seconds integer Absolute seconds from epoch (1970, 1, 1), can be negative, defaults to current time

__toString() public méthode

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

seconds() public méthode

public seconds ( ) : integer
Résultat integer Absolute seconds from epoch (1970, 1, 1), can be negative

toDateTime() public méthode

Converts current date to PHP DateTime.
public toDateTime ( ) : DateTime
Résultat DateTime PHP representation

type() public méthode

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