DATETIMEIMMUTABLE(3)							 1						      DATETIMEIMMUTABLE(3)

The DateTimeImmutable class

INTRODUCTION
This class behaves the same as DateTime except it never modifies itself but returns a new object instead. CLASS SYNOPSIS
DateTimeImmutable DateTimeImmutableDateTimeInterface Methods o public DateTimeImmutable::__construct NULL ([string $time = "now"], [DateTimeZone $timezone]) o public DateTimeImmutable DateTimeImmutable::add (DateInterval $interval) o publicstatic DateTimeImmutable DateTimeImmutable::createFromFormat (string $format, string $time, [DateTimeZone $timezone]) o publicstatic DateTimeImmutable DateTimeImmutable::createFromMutable (DateTime $datetime) o publicstatic array DateTimeImmutable::getLastErrors (void ) o public DateTimeImmutable DateTimeImmutable::modify (string $modify) o publicstatic DateTimeImmutable DateTimeImmutable::__set_state (array $array) o public DateTimeImmutable DateTimeImmutable::setDate (int $year, int $month, int $day) o public DateTimeImmutable DateTimeImmutable::setISODate (int $year, int $week, [int $day = 1]) o public DateTimeImmutable DateTimeImmutable::setTime (int $hour, int $minute, [int $second]) o public DateTimeImmutable DateTimeImmutable::setTimestamp (int $unixtimestamp) o public DateTimeImmutable DateTimeImmutable::setTimezone (DateTimeZone $timezone) o public DateTimeImmutable DateTimeImmutable::sub (DateInterval $interval) o public DateInterval DateTimeImmutable::diff (DateTimeInterface $datetime2, [bool $absolute = false]) o public string DateTimeImmutable::format (string $format) o public int DateTimeImmutable::getOffset (void ) o public int DateTimeImmutable::getTimestamp (void ) o public DateTimeZone DateTimeImmutable::getTimezone (void ) o public DateTimeImmutable::__wakeup (void ) PHP Documentation Group DATETIMEIMMUTABLE(3)