//3600 segundos es un hora, por ejemplo...$a=strtotime('12:00');$b=strtotime('03:00');if (($b - $a) > 3600){ // OK ?}