Contents
- Features page
- Installing Cassandra PHP Extension page
-
API docs index
-
Cassandra namespace
- Cluster namespace
- Exception namespace
- RetryPolicy namespace
- SSLOptions namespace
- TimestampGenerator namespace
- Type namespace
- Function interface
- Index interface
- Numeric interface
- RetryPolicy interface
- BatchStatement class
- Bigint class
- Blob class
- Collection class
- Table interface
- Decimal class
- DefaultColumn class
- DefaultIndex class
- DefaultMaterializedView class
- ExecutionOptions class
- Float class
- FutureClose class
- Future interface
- FutureException class
- FuturePreparedStatement class
- FutureRows class
- FutureSession class
- Map class
- PreparedStatement class
- Set class
- Smallint class
- SSLOptions class
- Tinyint class
- Varint class
- Aggregate interface
- Cluster interface
- Exception interface
- Keyspace interface
- Schema interface
- TimestampGenerator interface
-
Date class
- DefaultAggregate class
- DefaultKeyspace class
- DefaultSession class
- Inet class
- Time class
- Timestamp class
- Timeuuid class
- Tuple class
- Value interface
- Type class
- Column interface
- Statement interface
- UuidInterface interface
- DefaultCluster class
- DefaultSchema class
- FutureValue class
- SimpleStatement class
- UserTypeValue class
- Uuid class
- MaterializedView interface
- DefaultTable class
- Session interface
- Rows class
- Cassandra class
- DefaultFunction class
-
Cassandra namespace
A PHP representation of the CQL date
type.
Implements
Methods
Creates a new Cassandra\Date
object
- Parameters:
Name Type Details $seconds int
Absolute seconds from epoch (1970, 1, 1), can be negative, defaults to current time
Cassandra\Type
type
( )The type of this date.
- Returns:
Type Details Cassandra\Type
Converts current date to PHP DateTime.
- Returns:
Type Details DateTime
PHP representation
- Returns:
Type Details string
this date in string format:
Cassandra\Date
(seconds=$seconds)