Java – Spring cron expression for 3 AM

cronjavaquartz-schedulerspring

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?

Best Answer

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