Introduce a function that filters events by time

Currently we have four places where we filter events by start and date:
let's use a centralized function to do that.
Merge pull request #121 from Serhioromano/function-to-filter-events-by-dates

Introduce a function that filters events by time