To create \\DateTimeImmutable
in PHP 5.6+ use:
\\DateTimeImmutable::createFromMutable($concrete);
Prior PHP 5.6 you can use:
\\DateTimeImmutable::createFromFormat(\\DateTime::ISO8601, $mutable->format(\\DateTime::ISO8601), $mutable->getTimezone());