parsing - Is there a Python module to get next runtime from a crontab-style time definition? -


i'm writing dashboard application , need way figure out how long item "valid", i.e. when should have been superseded new value (it's possible have error such next value never arrives).

since know schedules processes producing data, can define valid "until next time process should have ran".

i thought crontab format specifying schedules compact (i.e. easy store in database), , easy understand.

finally question: there python module, when given current time , crontab spec (e.g. "25 5 * * *"), returns datetime giving next runtime?

i ran issues using code (from http://www.koders.com/python/fida55a9db55093a78dd26b55c606b267b2c5063a79.aspx?s=config) , , have fixed of them. used break going 1 month next. next_run works fine, prev_run gets stuck going 1 month previous (instead of failing gets caught in loop)

here git repository i've set continue working on it:

https://github.com/rfdaemoniac/crontab_parser


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -