I wanna get the difference between specific number of hours, as I'm working on payroll project which requires to get total working hours of an employee.
let's say the employee has worked for 40:18:20 (hh:mm:ss) And he missed to work for 12:15:10 (hh:mm:ss)
I want to get the difference between those two times as following: (40:18:20) - (12:15:10) = (28:03:10)
Is it possible via PHP functions?
What I actually did, is to split that as string, and tried to subtract each number individually and then recollect them again, which is "as I think" is not professional.
Please advise.