如何让Quartz Cron Expression在特定年份同时运行?

时间:2020-12-17 23:55:53

I'm using Quartz 2.1.x Distribution to run a program in Periodic manner. Means in hourly, daily, weekly, yearly basis. I'm able to schedule the program correctly.
The problem is in Aperiodic scheduling: With the help of Aperiodic Scheduling I want to achieve something like this --> "0 59 12 26 10 ? 2013"
which means it will run on 26th October of 2013 at 12:59 PM. Which should run only once. When I try to execute the above expression with Quartz gives me error. Please suggest me how to perform Aperiodic Scheduling using Quartz or any other API.
Thanks,
Sanchit

我正在使用Quartz 2.1.x Distribution以周期方式运行程序。指小时,每日,每周,每年。我能够正确安排程序。问题在于非周期性调度:在非周期性调度的帮助下,我希望实现类似这样的事情 - >“0 59 12 26 10?2013”​​,这意味着它将于2013年10月26日下午12:59运行。哪个应该只运行一次。当我尝试用Quartz执行上面的表达式时给出了错误。请建议我如何使用Quartz或任何其他API执行Aperiodic Sc​​heduling。谢谢,Sanchit

1 个解决方案

#1


0  

Sorry guys, Actually my program wasn't working at that time (don't know why? ) :P.. But now it is working fine. Thanks for your comments and suggestions. Cheers.

对不起伙计们,其实我的程序当时没有工作(不知道为什么?):P ..但现在它工作正常。感谢您的意见和建议。干杯。

#1


0  

Sorry guys, Actually my program wasn't working at that time (don't know why? ) :P.. But now it is working fine. Thanks for your comments and suggestions. Cheers.

对不起伙计们,其实我的程序当时没有工作(不知道为什么?):P ..但现在它工作正常。感谢您的意见和建议。干杯。