@ 2016-01-04T11:19:04Z <?php
$date = new \DateTime('2015-05-24 00:00:00');
$time = new \DateTime('0000-00-00 21:22:00');
$pickUpDateTime = new \DateTime();
$pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d'));
$pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s'));
$now = new DateTime("now");
$interval = date_diff($now, $pickUpDateTime);
if ( $v = $interval->d >= 1 ) echo pluralize( $interval->d, 'day' ) ;
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function pluralize() in /in/eQ5vE:13
Stack trace:
#0 {main}
thrown in /in/eQ5vE on line 13
Process exited with code 255 . Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.9 , 5.6.11 - 5.6.28 Fatal error: Call to undefined function pluralize() in /in/eQ5vE on line 13
Process exited with code 255 . Output for 5.6.10 preferences:dark mode live preview
167.2 ms | 401 KiB | 197 Q