The DateTimeImmutable class
DateTimeImmutable
&reftitle.intro;
Representation of date and time.
This class behaves the same as DateTime
except new objects are returned when modification methods such as
DateTime::modify are called.
&reftitle.classsynopsis;
DateTimeImmutable
DateTimeImmutable
DateTimeInterface
&InheritedConstants;
&Methods;
&reftitle.changelog;
&Version;
&Description;
7.1.0
The DateTimeImmutable constructor now includes the
current microseconds in the constructed value. Before this, it would
always initialise the microseconds to 0.
&reference.datetime.entities.datetimeimmutable;