Well, this may be a stone age question, but I got confused after reading so many questions here.
A simple solution using
strtotime()
has been pointed out here, but the last comment about time change for the accepted answer leads me to diff function.Many of the links suggest me to diff function , something like Calculate number of hours between 2 dates in PHP.
I read many more links and all of them ends with diff() function. Is there a reliable solution for this problem?
Note: I am using PHP version 5.3.5