Menu
Riverview Church

DATE_TIMESTAMP_SET

Sets the date and time based on an Unix timestamp

SYNTAX

date_timestamp_set ( DateTime $object , int $timestamp ) : DateTime

PARAMETERS

object

A DateTime object returned by date_create(). The function modifies this object.

timestamp

Unix timestamp representing the date.

RETURN

Returns the DateTime object for method chaining or FALSE on failure.

EXAMPLES

OBJECT TIMESTAMP

1610821676 = 2021-01-16 18:27:56

RETURN

1610821676 = 2021-01-16 18:27:56

PHP