<?php
$now = new DateTime(null, new DateTimeZone('Europe/Berlin'));
$soon = new DateTime(null, new DateTimeZone('Europe/Berlin'));
$soon->add(new DateInterval('P7Y5M4DT4H3M2S'));
$diff = $soon->diff($now);
echo $diff->format('%R%a');
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/eHtG5 on line 2
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/eHtG5 on line 3
-2714