filter based on time parameters