ANN: Time period library period-0.5 released 
Author Message
 ANN: Time period library period-0.5 released

The fifth public release of the period library is available at
http://www.*-*-*.com/ ~annis/creations/period.py.html .  The
library is designed to allow one to specify both unique and recurring
time periods symbolically.  For example, if you have some program
which should only run on Sunday evenings (say, web-log rotations), you
can specify that in your program:

        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



Wed, 23 Jun 2004 04:54:29 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ANN: Time period library period-0.5 released

2. OS/390 release test periods Re: default variable initialization under os/390 v2r8

3. Clipper App Crashes after a period of time

4. I am running a vi that crashes after a period of time with no error message

5. CPLD time periods

6. Off email/newsgroup for unknown period of time

7. $$ Make Lots of Money In A Short Period of Time $$

8. Delete files after a time period

9. windows: [fileevent writable] + [puts] (still) locks up (the ui) for a long period of time

10. Period (".") problems and a gnubie

11. Top 10 posters for the 14 day period ending 2001-07-08

12. 1 day trial period????

 

 
Powered by phpBB® Forum Software