PHP date_timestamp_set() Function

PHP Date/Time Reference : Set the date and time based on a Unix timestamp

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 Values

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 the DateTime object for method chaining. FALSE on failure
PHP Version: 5.3+

❮ PHP Date/Time Reference