PHP date_timestamp_get () function
PHP Date / Time Reference Manual
Examples
Returns today's date and time of the Unix timestamp:
<?php
$date=date_create();
echo date_timestamp_get($date);
?>
$date=date_create();
echo date_timestamp_get($date);
?>
Running instance »
Definition and Usage
date_timestamp_get () function returns the Unix timestamp.
grammar
date_timestamp_get( object);
参数 | 描述 |
---|---|
object | 必需。规定一个由 date_create() 返回的 DateTime 对象。 |
technical details
return value: | Returns the Unix timestamp representing the date. |
---|---|
PHP version: | 5.3+ |
PHP Date / Time Reference Manual