w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cron Expression to execute cron triggers for given times with hour and minute

I'm afraid you can't do as exactly as you specified. As you mentioned in the question, here are some resources, which help you overcome this (Not as exactly as your requirement). But if you can change your minute time to a same number you can achieve this easily. If the minute number is so important you have to run 3 triggers. That seems to be the easiest way. It has mentioned in quartz.

Note that some scheduling requirements are too complicated to express with a single trigger - such as "every 5 minutes between 9:00 am and 10:00 am, and every 20 minutes between 1:00 pm and 10:00 pm". The solution in this scenario is to simply create two triggers, and register both of them to run the same job.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.