I have action to trigger every minute between 6:00 AM to 14 (2:00 PM), first I made cron expression every minutes as “0 * * ? * *”. However my concern is not to exhaust the system for comparison every minutes for 24 hours which is unnecessary.
So, here I would like to take your opinions
Does this cron expression “0 * 6-14 ? * * *” do the job (triggers every minutes only between 6:00 am to 14:00 pm) ?
Is my concern needed, because I am thinking when the system uses cron it compares all the time any way ?
Is Comparison two DateTime variables better than two String variables (for example: DateTime variable to be converted into String), in term of performance ?
Also in term of performance: in (Design Pattern: Time Of Day), and when using it for every minutes triggering; will using timers better than comparing end of periods ?