I am trying to calculate the time difference in hours between to times in format hh:mm. The problem is the data is in both 12 hour and 24 hour. eg. 23:55 - 00:10 , 12:10 - 01:02, 10:50 - 11:10 etc..
I tried the method given here PHP - hours difference (HH:MM format)
I need a function with all conditions to handle the 24h, 12h to calculate the time difference in hours.
Many thanks.