DateTime
PHP Manual

DateTime::setTimestamp

(PHP 5 >= 5.3.0)

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

Beschreibung

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Sets the date and time based on an Unix timestamp.

Parameter-Liste

unixtimestamp

Unix timestamp representing the date.

Rückgabewerte

Returns the modified DateTime.

Siehe auch


DateTime
PHP Manual