Method | Description | |
---|---|---|
__construct ( integer $seconds = null ) | Creates a new Date object | |
__toString ( ) : string | ||
seconds ( ) : integer | ||
toDateTime ( ) : DateTime | Converts current date to PHP DateTime. | |
type ( ) : cassandra\Type | The type of this date. |
public __construct ( integer $seconds = null ) | ||
$seconds | integer | Absolute seconds from epoch (1970, 1, 1), can be negative, defaults to current time |
public __toString ( ) : string | ||
return | string | this date in string format: Cassandra\Date(seconds=$seconds) |
public toDateTime ( ) : DateTime | ||
return | DateTime | PHP representation |