DateTimeImmutable::createFromMutable Returns new DateTimeImmutable object encapsulating the given DateTime object &reftitle.description; public static DateTimeImmutableDateTimeImmutable::createFromMutable DateTimedatetime &reftitle.parameters; datetime The mutable DateTime object that you want to convert to an immutable version. This object is not modified, but instead a new DateTimeImmutable object is created containing the same date time and timezone information. &reftitle.examples; Creating an immutable date time object ]]> &reftitle.returnvalues; Returns a new DateTimeImmutable instance.