Firmware versions 4.1 and above have timed tasks in the interface. What model of device do you have?
If it is not yet upgradable to 4.x, you can configure it in LuCI → System → Scheduled Tasks using Crontab. The command is reboot.