Added function diffInHoursFiltered to filter a Date period by hours

Following the PR by @m4tthumphrey i think it should be handy to also have a filterered diff by hours.
Why not **$abs ? abs($diff) : $diff;** and drop the $inverse variable?