- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/nDlCt on line 6
Process exited with code 255.
<?php
$lastDate = '1452532797';
$interval = 'P0Y0M1D';
$lastJob = new \Datetime();
$lastJob->setTimestamp($lastDate);
echo 'Last Sent: '.$lastJob->format('Y/m/d'))."\n";
$interval = new DateInterval($interval);
echo 'Interval: '.$interval->format('%y years, %m months, %d days'))."\n";
$currentJob = new \Datetime();
echo 'Today: '.$currentJob->format('Y/m/d'))."\n";