get recent data: filtering based on timestamp.