returning events_by_time