PHP Класс Cassandra\Date

Наследование: implements cassandra\Value
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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 __toString ( ) : string
Результат string this date in string format: Cassandra\Date(seconds=$seconds)

seconds() публичный Метод

public seconds ( ) : integer
Результат integer Absolute seconds from epoch (1970, 1, 1), can be negative

toDateTime() публичный Метод

Converts current date to PHP DateTime.
public toDateTime ( ) : DateTime
Результат DateTime PHP representation

type() публичный Метод

The type of this date.
public type ( ) : cassandra\Type
Результат cassandra\Type