fork(2) download
  1. <?php
  2.  
  3. $dt1 = date_create('2019-10-01 15:00');
  4. $dt2 = date_create('2019-10-02 10:00');
  5.  
  6. var_dump($dt1->diff($dt2)->format("%d %H:%I:%S"));
Success #stdin #stdout 0.02s 24368KB
stdin
Standard input is empty
stdout
string(10) "0 19:00:00"