PHP Класс Cassandra\Timeuuid

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

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

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