Easy Tutorial
❮ Php Unserialize Function Func Curl_Share_Init ❯

PHP date_timestamp_set() Function

PHP Date/Time Reference Manual

Example

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

Parameter Description
object Required. Specifies a DateTime object returned by date_create()
unixtimestamp Required. Specifies a Unix timestamp that represents the date.

Technical Details

Return Value: Returns a DateTime object in the specified format. Returns FALSE on failure.
PHP Version: 5.3+
--- ---
❮ Php Unserialize Function Func Curl_Share_Init ❯