DateTimeImmutable::setTimestamp

PHP 5 >= 5.5.0, PHP 7, PHP 8
DateTimeImmutable::setTimestamp - Sets the date and time based on a Unix timestamp
Manual

DateTimeImmutable::setTimestamp( int$timestamp ): public DateTimeImmutable

Like DateTime::setTimestamp but works with DateTimeImmutable.

Function DateTimeImmutable::setTimestamp:

  • Manual

Date and Time Functions

Most used PHP functions