PHP Class Cassandra\Timeuuid

Inheritance: implements cassandra\UuidInterface
Afficher le fichier Open project: datastax/php-driver

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

__toString() public méthode

Returns this timeuuid as string.
public __toString ( ) : string
Résultat string timeuuid

time() public méthode

Unix timestamp.
See also: time
public time ( ) : integer
Résultat integer seconds

toDateTime() public méthode

Converts current timeuuid to PHP DateTime.
public toDateTime ( ) : DateTime
Résultat DateTime PHP representation

type() public méthode

The type of this timeuuid.
public type ( ) : cassandra\Type
Résultat cassandra\Type

uuid() public méthode

Returns this timeuuid as string.
public uuid ( ) : string
Résultat string timeuuid

version() public méthode

Returns the version of this timeuuid.
public version ( ) : integer
Résultat integer version of this timeuuid