Extracts all the messages within a time-range provided as input