PHP 클래스 Cassandra\Timeuuid

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

공개 메소드들

메소드 설명
__construct ( integer $timestamp = null ) Creates a timeuuid from a given timestamp or current time.
__toString ( ) : string Returns this timeuuid as string.
time ( ) : integer Unix timestamp.
toDateTime ( ) : DateTime Converts current timeuuid to PHP DateTime.
type ( ) : cassandra\Type The type of this timeuuid.
uuid ( ) : string Returns this timeuuid as string.
version ( ) : integer Returns the version of this timeuuid.

메소드 상세

__construct() 공개 메소드

Creates a timeuuid from a given timestamp or current time.
public __construct ( integer $timestamp = null )
$timestamp integer Unix timestamp

__toString() 공개 메소드

Returns this timeuuid as string.
public __toString ( ) : string
리턴 string timeuuid

time() 공개 메소드

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

toDateTime() 공개 메소드

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

type() 공개 메소드

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

uuid() 공개 메소드

Returns this timeuuid as string.
public uuid ( ) : string
리턴 string timeuuid

version() 공개 메소드

Returns the version of this timeuuid.
public version ( ) : integer
리턴 integer version of this timeuuid