justcode.ikeepstudying.com
Python 自动任务, Python 定时任务, parse-crontab, Parse and use crontab schedules in Python - Just Code
项目地址:https://github.com/josiahcarlson/parse-crontab 描述 该软件包旨在提供一种解析crontab计划条目并确定下一次应何时运行项目的方法。更具体地说,它计算从调用.next()方法到下一次应执行该项目之间的延迟(以秒为单位)。 将下面的图表与http://en.wikipedia.org/wiki/Cron#CRON_expression进行比较, 您会注意到不支持W和#符号。 Field Name 栏位名称 Mandatory 强制性的 Allowed Values 允许值 Default Value 默认值 Allowed Special Characters 允许的特殊字符 Seconds 秒 No 0-59 0 * / , – Minutes 分钟 Yes 0-59 N/A * / , – Hours 小时 Yes 0-23 N/A * / , – Day of month 一个月中的某天 Yes 1-31 […]
Gideon