implemented the basic setting action of the time

*The code need to add more judgements or will cause some errors