With Raspberry Pi date/time is updated using network (NTP).
Such feature could need a Real Time Clock
Moreover it will be necessary to define a text format to define allowed hours, forbidden hours...
A cron like format might be considered
http://www.nncron.ru/help/EN/working/cron-format.htm
Some Python libs to deal with crontab format
https://github.com/kiorky/croniter
https://bugs.launchpad.net/python-crontab
Maybe ISO 8601 can also be considered
https://en.wikipedia.org/wiki/ISO_8601
Some Python libs to deal with ISO 8601
https://pypi.python.org/pypi?%3Aaction=search&term=8601&submit=search
With Raspberry Pi date/time is updated using network (NTP).
Such feature could need a Real Time Clock
Moreover it will be necessary to define a text format to define allowed hours, forbidden hours...
A cron like format might be considered
http://www.nncron.ru/help/EN/working/cron-format.htm
Some Python libs to deal with crontab format
https://github.com/kiorky/croniter
https://bugs.launchpad.net/python-crontab
Maybe ISO 8601 can also be considered
https://en.wikipedia.org/wiki/ISO_8601
Some Python libs to deal with ISO 8601
https://pypi.python.org/pypi?%3Aaction=search&term=8601&submit=search