PHP 5.3.0+ has a DateTime::diff function: http://docs.php.net/datetime.diff
Unfortunately I am currently using the PHP 5.1 branch with no possibility to upgrade. So what is the best way to work out a date-time difference?
For example the time difference between 22-01-2013 17:00 and 23-01-2013 13:00.
I am not really worried about the output format as such.
All you need to know is
strtotimephp function.