0

i want to find time difference in minutes between current time and specific time. for example,current time is '02:00:00' am and the specific time is '22:00:00'pm. From my code below i get some negative number, i should get 240 minutes time difference.

$difference=strtotime('02:00:00') - strtotime('22:00:00');
 echo $difference/60;

I get -1200

Phyo
  • 31
  • 1
  • 9

0 Answers0