export function getTimeDiffInHours ( date1 , date2 = new Date ( ) ) { const diffInMiliseconds = Math . abs ( date1 . getTime ( ) - date2 . getTime ( ) ) ; const diffInHours = diffInMiliseconds / 60 / 60 / 1000 ; return Math . round ( diffInHours ) ; }