How can I create a button that activates and deactivates within a particular time period?

I’m designing the website for a tution class. Therefore I want to design the students can be logged into the class session at a certain time period only…

Please give me a brief answer.

Please observe the community guidelines and refrain from multiple posts on the same topic or question.

Your question was answered in your other post.

This post is closed and will be deleted.