I have two times like 10:00 am
and 7:00 pm
.
And from this I want to get the total hours. As from that time I have to get the 9 hours.
How will I do this?
I have explode it with the :
but it then subtract 7 from 10 and return the result 3 which is incorrect because it should return 9.