Definition
The date_timestamp_get() function returns the Unix timestamp representing the date.
Syntax
date_timestamp_get(object)
Parameters
Parameter | Description |
---|---|
object |
Required. Specifies a DateTime object returned by date_create() . |
Example
<?php
$date = date_create();
echo date_timestamp_get($date);