I quartz to schedule my jobs in my application I am using Net. I was just wondering if a cron expression can be made for the following scenario:
between 2:15 am and 5:20 am each afternoon
robyaw,
Thank you very much for your reply. And I apologize for the delay in answering so much. I was actually locked for a while. Your solution really works. I had to make 3 cron trigger for the time limit which I had specified. You were right with the time limit which you mentioned though, by you For the 3 croon quotations mentioned, I fear that they can not work as intended, these expressions work for the time limit: 2:15 am - 5:20 am - Every Following
1) * 15-59 2 * *? - 2:15 to 3:00 AM, ie, 2:15:00 AM to 2:59:59 AM
2) * 0-59 3-4 * *? - From each second to 3:00 am to 5:00 am, i.e., 3:00 am to 4:59:59 am
3) * 0-19 5 * * ? - 5:00 AM to 5: 20 AM, ie, 5:00 AM to 5:19:59 AM
@gauteh: Please note that quartz. Actually supports the second trigger.
Hope this helps others to solve the problem of such a problem.
Comments
Post a Comment