The problem
You have a periodic task in Celery defined with a crontab(...) schedule, and you want to calculate the next time it's supposed to run.
Example: you want to find out when crontab(hour=12, minute=0) will trigger next after now.
Simple, right? There’s croniter library, which seems to be designed to solve this exact problem. Just use it, right?
Well.
Read more