Time-based resampling