- print_r: documentation ( source)
<?php
$d = '2015-01-01';
$dd = new DateTime($d);
print_r($dd->format(DateTime::W3C));
$dd->add(new DateInterval('PT17H12M'));
print_r($dd->format(DateTime::W3C));
var_dumpt($dd->format('\P\TH\Hi\M') === 'PT1712M');