In the Date.php class define a method to get the difference of two dates in whatever format the user needed them in.
E.g.
Date::differenceInDates($date1, $date2);
returns in ms by default, but 3rd param could be supplied to change return format
Date::differenceInDates($date1, $date2, 's');
returns difference in seconds