How do i setup a Dynamic Time-Of-Day system?

I want to learn how to do a Time Of Day setup.