I'm trying to find the difference between two times. When I subtract them all I ever get is zero. I'm thinking it's because PHP doesn't recognize them as integers? Here is what I'm doing:
$beginTime = date("g:i:s A");
$endTime = date("g:i:s A");
$totalTime = $beginTime - $endTime;
The output is always zero. Clearly this is wrong. Can anyone offer a suggestion?