I am using Java - Spring - Quartz Scheduler. I want to run job by 3 AM in the morning and following is my cron expression.
0 0 3 * * ?
Can somebody tell me is it the correct one? Will it execute twice in 24 hour 3 PM and 3 AM?
Yes this is correct, you can verify it by this, and it takes 0-23 for Hhour field so it will invoke at 3 am
I have checked your expression in the CronMaker.
This only works for 3:00 AM every day. If you need for 3 AM and 3 PM, use this:
0 0 3/12 1/1 * ? *
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With