Cron expression does not work

Hello everybody,

I want to create a cron expression that fires my rule every 15 minutes, 10AM-7PM, April to September, Monday-Friday

According to http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/tutorial-lesson-06 this should do it:

Time cron "0 0/15 10-19 * 4-9 MON-FRI"

but instead I get

CronExpression '0 0/15 10-19 * 4-9 MON-FRI' is invalid

when saving the rule. Can please somebody point me in the right direction?
Also is it possible to combine two or more cron expressions to fire the same rule, like

rule "Abschattungsautomatik"
when
	Time cron "0 0/15 8-19 * 4-9 MON-FRI"
or
	Time cron "0 0/15 10-19 * 4-9 SAT,SUN"

There seems to be an issue with this, see https://github.com/openhab/openhab/issues/2524

Openhab version is 1.71 running on Odroid U3 / Ubuntu with Java version 1.8.0_60

Thanks for any help

BR boxerfahrer

I think the expression has to be

Time cron "0 0/15 10-19 ? 4-9 MON-FRI"

but I’m not sure about that.

This works for me:

rule "Kinder aufstehen"
	when 
			Time cron "0 40 6 ? * MON-FRI"			  
	then {

and this also:

rule "Reload datapoints"
when 
    Time cron "0 0 0/12 * * ?"   // every 12 hours

and here is another one that works:

rule "Rolläden am Wochenende"
	when 
			Time cron "0 30 8 ? * SAT-SUN"			  
	then {

Regards,
Michael

Thank you very much for your responses. I have now tried

rule “Abschattungsautomatik”
when
Time cron “0 0/15 8-19 ? 4-9 MON-FRI”
or
Time cron “0 0/15 10-19 ? 4-9 SAT-SUN”

There is no syntax complaint now; so I will wait for the weekend to see whether weekday and weekend really works in the rule.

Again, thanks a lot!
BR boxerfahrer