allow time-based filtering for stat requests

Allow stat requests to be filtered based on start_time and/or end_time.