PHP 클래스 Cassandra\Date

상속: implements cassandra\Value
파일 보기 프로젝트 열기: datastax/php-driver

공개 메소드들

메소드 설명
__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