PHP 클래스 Cassandra\Timestamp

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

공개 메소드들

메소드 설명
__construct ( integer $time = null, integer $usec = null ) Creates a new timestamp from either unix timestamp and microseconds or from the current time by default.
__toString ( ) : string Returns a string representation of this timestamp.
microtime ( boolean $get_as_float = false ) : float | string Microtime from this timestamp
time ( ) : integer Unix timestamp.
toDateTime ( ) : DateTime Converts current timestamp to PHP DateTime.
type ( ) : cassandra\Type The type of this timestamp.

메소드 상세

__construct() 공개 메소드

Creates a new timestamp from either unix timestamp and microseconds or from the current time by default.
public __construct ( integer $time = null, integer $usec = null )
$time integer Unix timestamp
$usec integer Microseconds

__toString() 공개 메소드

Returns a string representation of this timestamp.
public __toString ( ) : string
리턴 string timestamp

microtime() 공개 메소드

Microtime from this timestamp
또한 보기: microtime
public microtime ( boolean $get_as_float = false ) : float | string
$get_as_float boolean Whether to get this value as float
리턴 float | string Float or string representation

time() 공개 메소드

Unix timestamp.
또한 보기: time
public time ( ) : integer
리턴 integer seconds

toDateTime() 공개 메소드

Converts current timestamp to PHP DateTime.
public toDateTime ( ) : DateTime
리턴 DateTime PHP representation

type() 공개 메소드

The type of this timestamp.
public type ( ) : cassandra\Type
리턴 cassandra\Type