Cron expression to run cron triggers for 12 hours a day?

I need a cron expression (0 0/60 * * *?) To run the application every 12 hours (twice a day).

+7
source share
2 answers

Use for example. 0 0 3,15 * * ? This will work at 3 a.m. and 3 p.m. It is twice a day, between 12 hours. Can you use 0 0 0/12 * * ? which means every 12 hours. Here are some examples.

+10
source

Some examples that match your criteria:

 30 */12 * * * 

works at 00:30:00 and 12:30:00 every day

 0 3-15/12 * * * 

works at 03:00:00 and 15:00:00 every day

 23 4,16 * * * 

works at 04:23:00 and 16:23:00 every day

+2
source

All Articles