Menu
Hey,
So I’m attempting to find average times, im going to be pulling for a table information like so:
[CODE]ID timeIn timeOut
1 16:13:12 18:13:12
2 17:13:11 19:13:12
3 18:11:12 20:12:11
4 19:15:35 21:22:45
And im attempting to subtract the times for each value, then finding the total average of all those. So i’ve been searching google and the web trying to find a simple way to subtract 2 times like so but have been unable to do so. I’ve attempted to explode the hours and minutes and make it into a giant number of seconds, subtract the two and recondense it into hours:minutes:seconds again.
Any advise on how to do this?