Polyfill for the DateTimeImmutable class added in PHP 5.5.0