Yaron Levi
Yaron Levi

Reputation: 13079

Cron Expression - Every day in two different hours (13:30 and 17:40)?

I want to create a Cron expression to run "Every day, at 13:30 and 17:40". As hard as I tried I only managed to achive this by combining the results of two Cron Expressions:

Is there a way to describe this in one Cron expression?

Upvotes: 2

Views: 585

Answers (1)

Backs
Backs

Reputation: 24903

Answering your question - no, there is no way to describe this schedule in one cron expression. But, if you have equal minutes, you can use this;

30 13,17 * * * - this will fires at 13:30 and 17:30.

Upvotes: 2

Related Questions