Func Date Timestamp Set
# PHP date_timestamp_set() Function
[ PHP Date/Time Reference](#)
## Example
Set the date and time based on a Unix timestamp:
[Run Example Β»](#)
* * *
## Definition and Usage
The date_timestamp_set() function sets the date and time based on a Unix timestamp.
## Syntax
date_timestamp_set(_object,unixtimestamp);_
| Parameter | Description |
| :--- | :--- |
| _object_ | Required. Specifies a DateTime object returned by [date_create()](#). This function modifies this object. |
| _unixtimestamp_ | Required. Specifies a Unix timestamp representing the date. |
## Technical Details
| Return Value: | Returns a DateTime object in the specified format. Returns FALSE on failure. |
| :--- |
| PHP Version: | 5.3+ |
* * PHP Date/Time Reference](#)
YouTip