from period import in_period
import sys
if in_period('Sunday.Hr17-23'):
do_something()
else:
sys.exit(1) # Don't start at other times!
The most significant change to the code since previous versions is
that it is now possible to nest and group period expressions, which
makes the library much easier to use. For example, you can now
specify a period such as '!(Monday|Friday).Hr11-14' and get a
reasonable answer.
Documentation is on the web page and is included with the source.
--
William Annis - System Administrator - Biomedical Computing Group
"When men are inhuman, take care not to feel towards them as they do
towards other humans." Marcus Aurelius VII.65