I read this answer here which explains how to output an ical file of scheduled items:
How can I use PHP to dynamically publish an ical file to be read by Google Calendar?
My question is what is the ical format for recurring events? Let's say i want to schedule a team meeting every monday at 10 am. What is the ical format for a repeating schedule? Or do i need to print X number of events into the future?
the ical format is defined by the RFC5545: https://www.rfc-editor.org/rfc/rfc5545
in your case you will need to define only one event and make use of the FREQ property (FREQ=WEEKLY) and COUNT property (COUNT=X)
RRULE:FREQ=WEEKLY;BYDAY=MO;COUNT=X
see https://www.rfc-editor.org/rfc/rfc5545#section-3.3.10 for more details.
Let's say I want to schedule a team meeting every monday at 10 am. What is the ical format for a repeating schedule?
DTSTART:20121022T100000
RRULE:FREQ=WEEKLY;BYDAY=MO
specifies a start date of 10am on a Monday, and the RRULE part specifies that it recurs weekly.
You need to put this inside a VEVENT as specified in RFC 2445.
Since no timezone is specified, Google will assume the primary timezone for the calendar to which you are uploading this event.
You do not need to specify a count or a termination date. Google calendar has some internal limit on the number of instances of a recurring event that you can specialize, but unless your team meets regularly for centuries you shouldn't ever run into it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With