DateTime
PHP Manual

DateTime::setTimestamp

(PHP 5 >= 5.3.0)

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

Opis

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Sets the date and time based on an Unix timestamp.

Parametry

unixtimestamp

Unix timestamp representing the date.

Zwracane wartości

Returns the modified DateTime.

Zobacz też:


DateTime
PHP Manual