I have 2 datetimes
2003-10-24 12:43:00 2003-10-24 16:13:03
I want to have as a result
3.5 hours for example
is that possible?
either with PHP function or as SQL function i dont mind
thank you
daniel
echo number_format((strtotime('2003-10-24 16:13:03')-strtotime('2003-10-24 12:43:00')) / 60 / 60, 1, '.', '') . ' hours';