<?php
$now = new DateTime(null, new DateTimeZone('Europe/Berlin'));
$soon = new DateTime(null, new DateTimeZone('Europe/Berlin'));
$soon->add(new DateInterval('P2D'));
$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/cXm1f on line 2
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/cXm1f on line 3
-2