DateTime
PHP Manual

DateTime::setTimestamp

(PHP 5 >= 5.3.0)

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

설명

public DateTime DateTime::setTimestamp ( int $unixtimestamp )

Sets the date and time based on an Unix timestamp.

인수

unixtimestamp

Unix timestamp representing the date.

반환값

Returns the modified DateTime.

참고


DateTime
PHP Manual