Return the Unix timestamp for today's date and time:
The date_timestamp_get() function returns the Unix timestamp.
Parameter | Description |
---|---|
object | Required. Specifies a DateTime object returned by date_create() |
Return Value: | Returns the Unix timestamp that represents the date |
---|---|
PHP Version: | 5.3+ |