$mytime="9:10"; $sysdate=date('h:i');
<?php $mytime = '9:16'; $sysdate = strtotime("now"); $timediff = ($sysdate - strtotime($mytime))/3600; if ($timediff < 6) { echo "less than 6 hours"; } else if ($timediff > 6) { echo "more than 6 hours"; } else { echo ('exactly 6 hours less'); } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)