Route Map

= 60) { $offmins=$offmins - 40; } if(substr($offset,0,1)=="-") { $outhours=$thehours + $offhours; $outmins=$themins + $offmins; } else { $outhours=$thehours - $offhours; $outmins=$themins - $offmins; } //check minutes and modify hours and mins as required if($outmins < 0) // must dectrement hours if(substr($outmins,0,1)=="-") { $outhours=$outhours - 1; $outmins=$outmins + 60; } elseif ($outmins >= 60) { $outhours=$outhours + 1; $outmins=$outmins - 60; } //ensure '00' is reported instead of vblank if ($outmins=="") { $outmins="00"; } if (strlen($outmins)==1) { $outmins="0".$outmins ; } //check hours and modify date as required if($outhours < 0) // must dectrement days { $outhours=$outhours + 24; $outdate = dateconvert($thedate, "-1"); } elseif ($outhours >= 24) { $outhours=$outhours - 24; $outdate = dateconvert($thedate, "1"); } else { // $outdate=$thedate; $outdate = dateconvert($thedate, "0"); } if ($outhours=="") { $outhours="00"; } if (strlen($outhours)==1) { $outhours="0".$outhours ; } $outtime=$outhours.":".$outmins; //cant return multiple values (date and time) so return an array that holds these instead. return array ($outtime, $outdate); } ?>