DateTime
PHP Manual

DateTime::setTimestamp

(PHP 5 >= 5.3.0)

DateTime::setTimestampSets the date and time based on an Unix timestamp

Description

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Sets the date and time based on an Unix timestamp.

Parameters

unixtimestamp

Unix timestamp representing the date.

Return Values

Returns the modified DateTime.

See Also


DateTime
PHP Manual