setPositionByTime