Parsing crontab-style lines

前端 未结 2 2075
孤独总比滥情好
孤独总比滥情好 2020-12-24 06:39

I need to parse a crontab-like schedule definition in Python (e.g. 00 3 * * *) and get where this should have last run.

Is there a good (preferably small) library th

2条回答
  •  情深已故
    2020-12-24 07:03

    Maybe you can use this module:

    http://code.activestate.com/recipes/577466-cron-like-triggers/

    I used that module for making an user-space cron in Python and it works very well. This module can handle crontab-like lines.

提交回复
热议问题