implement time setter