Hi,
I'm trying to substract the hours of the time with the hours of the begining of an event, and print how many time is left.
Can someone help me?
//Preço Viagens
$partida=$viagens['HoraPartida'];
$horapartida = explode(":", $partida);
echo $horapartida[0];
$horasistema = date("G"); //hora sistema
$difhoras=$horasistema - $horapartida;