Can iCalendar make this recurrance pattern?

My company is trying to create a program with the ability to make schedules similiar to the following:

On weekdays, every 5 minutes between 11:30 and 16:45

or

Everyday, every 1 minute between 2:45 and 19:15

Can iCalander do this? If so, how can I do it? I've been trying to do this for a while without figuring it out, please help.

On weekdays, every 5 minutes between 11:30 and 16:45

DTSTART:20040101T000000
RRULE:FREQ=DAILY;COUNT=100;BYDAY=MO,TU,WE,TH,FR;BYHOUR=11,12,13,14,15,16;BYMINUTE=30,35,40,45
EXDATE:20040101T000000

To explain:

FREQ=DAILY because the pattern "repats" every day.

BYDAY=MO,TU,WE,TH,FR limits the days on which the pattern works to weekdays.

BYHOUR=11,12,13,14,15,16 "expands" the pattern to work on these hours. It "expands" the pattern because otherwise a daily pattern would normally fire only once.

BYMINUTE=30,35,40,45 "expands" the pattern to work on these minutes only.

All of the above gives you the combination you want.

A pattern has to have a DTSTART. According to the iCalendar standard, the start date will be included in the resulset. You probably don't want it, so it is excluded from the result set using EXDATE.

Your second pattern - I'm not sure myself.

The best I can come up with is one day pattern that you will have to update and reschedule for the next day every day.

DTSTART:20040101T024500
RRULE:FREQ=MINUTELY;UNTIL=20040101T191500Z

Thanks, but what I really needed was to make these patterns dynamically (the user chooses everyday/weekday, start/end time, frequency). I figured out how to do it using two exclusion rules: one for all minutes before the start minute in the start hour, and one for all minutes after the end minute in the end hour. Thanks again for the quick responce.