Quartz.Net CronExpression 构建器 [英] Quartz.Net CronExpression Builder

查看:42
本文介绍了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 构建器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆