HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Date/Time Reference : Set the date and time based on a Unix timestamp
The date_timestamp_set() function sets the date and time based on a Unix timestamp.
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 |
Return Value: | Returns the DateTime object for method chaining. FALSE on failure |
---|---|
PHP Version: | 5.3+ |
❮ PHP Date/Time Reference