PHP date_timestamp_get()Functions
PHP Date/Time Reference Manual
Examples
Returns the Unix timestamp for today's date and time:
<?php
$date=date_create();
echo date_timestamp_get($date);
?>
$date=date_create();
echo date_timestamp_get($date);
?>
Run Example »
Definition and Usage
The date_timestamp_get() function returns the Unix timestamp.
Syntax
date_timestamp_get(object);
| Parameters | Description |
|---|---|
| object | Required. Specifies adate_create()returned DateTime object. |
Technical Details
| Return value: | Returns the Unix timestamp representing the date. |
|---|---|
| PHP Version: | 5.3+ |
PHP Date/Time Reference Manual Other Extensions