How do I make time activated gates?

yes, a cooldown. The problem is that I still trying to learn everything