DateTimeImmutable::createFromInterface Returns new DateTimeImmutable object encapsulating the given DateTimeInterface object &reftitle.description; public static DateTimeImmutableDateTimeImmutable::createFromInterface DateTimeInterfaceobject &reftitle.parameters; object The DateTimeInterface object that needs to be converted 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.returnvalues; Returns a new DateTimeImmutable instance. &reftitle.examples; Creating an immutable date time object ]]>