Routing API Developer's Guide

RecurringTimeIntervalsCombinationType

This type can be used whenever recurring time interval needs to be represented.

RecurringTimeIntervalsCombinationType is an xs:string containing ISO 8601 compliant recurring time interval or intersection(*), sum(+) or subtraction(-) of its combinations. The recurring time interval combinations are formulated using prefix notation.

Examples

// every day from 06:00 to 21:00
R/PT15H/FREQ=DY;BYHR=6

// every week Monday to Friday from 06:00 to 21:00
*(R/P5D/FREQ=WE;BYDY=MO)(R/PT15H/FREQ=DY;BYHR=6)

// every week Monday to Friday from 06:00 to 10:00 and from 16:00 to 21:00
*(R/P5D/FREQ=WE;BYDY=MO)+(R/PT4H/FREQ=DY;BYHR=6)(R/PT5H/FREQ=DY;BYHR=16)

// every 1st and 3rd January from 06:00 to 20:00
*+(R/P1D/FREQ=YR;BYMO=1;BYMD=1)(R/P1D/FREQ=YR;BYMO=1;BYMD=3)(R/PT14H/FREQ=DY;BYHR=6)

// odd month days Monday to Friday from 07:00 to 10:00
*(R/P1D/FREQ=MO;BYMD=1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31)*(R/P5D/FREQ=WE;BYDY=MO)(R/P3H/FREQ=DY;BYHR=7)