Timer for draw command

Doing community game giveaways, but I want to set it so the draw only runs an hour then entering is closed. Is there any way to do this? I’ve looked at the documentation, but couldn’t find anything related to the subject of setting a timer for it.