Implement time shift.