本文介绍了Quartz.Net CronExpression 构建器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些 GUI 控件形成典型的 Windows 调度程序(日期\时间选择器、复选框等),我想从中构建 CronExpression 字符串.
I have some GUI controls forming a typical windows scheduler (Date\Time pickers, check boxes, etc) that I would like to build a CronExpression string from.
有谁知道构建表达式字符串的好方法,要么是预先存在的类,要么是解决这个问题的好方法?
Does anyone know of a good way to build the expression string, either a pre-existing class or good approaches to tackle this problem?
推荐答案Quartz.Net 中的 Cron 表达式由 7 个 子表达式:
Cron expressions in Quartz.Net are made up of 7 sub-expressions:
1. Seconds 2. Minutes 3. Hours 4. Day-of-Month 5. Month 6. Day-of-Week 7. Year (optional field)我通常使用 CronMaker 来创建我自己的 cron 表达式.
I usually use CronMaker to create my own cron expressions.
另一种选择是其他 工具,效果很好.
Another option is this other tool which works pretty well.
更多推荐
Quartz.Net CronExpression 构建器
发布评论