“Hour:Minute” difference from two “Hour:Minute” strings

Biclope

New Member
Simple, eh? -sigh-A function. Two string arguments ( I guess it doesn't matter the type). Returning a string which is the time difference between the arguments. Think about it as a counter at your local CS internet-caffe.\[code\]function time_diff($start, $stop) { ... return $diff;}echo "Your time playing CS: " . time_diff('19:37', '00:05') . ". Go home!";\[/code\]I tried. Just too embarrassed to say how much time I've invested in this algorithm.I can't change the format (tell me about it!).If you happen to know a class, a file or a piece of code from the depths of the internets, I'd be happy to make use of it."Thanks" you very much.
 
Back
Top