fork(6) download
  1. <?php
  2.  
  3. $tempo1 = '19:37:00';
  4. $tempo2 = '19:38:20';
  5.  
  6. $tempo = gmdate('H:i:s', abs( strtotime( $tempo1 ) - strtotime( $tempo2 ) ) );
  7.  
  8. echo $tempo;
  9.  
  10.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
00:01:20