How can rotate the servo motor every certain time?

Look up RTC (Real Time Clock). That's what you need for telling the time. There are plenty of examples that will show you how to move a servo.

Steve