how do i go about working the elapsed time in hours beteween two 24 hour times:
heres my general code
<?php
$to = $_POST['totime']; ///// first 24 hour time
$land = $_POST['landtime']; ///// Second 24 hour time
$ICAO = $_POST['LandICAO']; ///// Landing Airport
$frame = $_POST['frame']; ///// a/c Frame Number
$fnltime = "$land - $to";
echo $fnltime
?>
problem being i need to to still be able to work it out if the person set one time as say 1800 and the 2nd time as 0200
so if it passes midnight i still need it to be able to work the elapsed time out got me?
so:
1) how do i convert the 24 hour number to acctual times
2) how do i find out elapsed time in hours