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.
$inverse but be kept as it is used when $end < $start