I'm writing a dashboard application and I need a way to figure out how long an item is "valid", i.e. when should it have been superseded by a new value (it's possible to have an error such that the next value never arrives).
Since I know the schedules for the processes producing data, I can define valid as "until the next time the process should have ran".
I thought the crontab format for specifying schedules was very compact (i.e. easy to store in a database), and also easy to understand.
Finally the question: is there a Python module, that when given the current time and a crontab spec (e.g. "25 5 * * *"), returns a datetime giving the next runtime?