0

I apologise if this is on the wrong StackExchange site. I suppose it could go to Apple SE, but I'm more interested in the intricacies of .ical files, not the app itself as I want to parse the files with PHP.

I'm writing a web app with a calendar feature. It needs to load .ical files and display appointments grouped into half hour slots.

Do .ical files support multiple events at the same time? When it comes to writing code to add events, the start time will be rounded to the nearest 30 minutes, so two events could have the same start time. Is this permitted in .ical files, as well as being parsed properly by PHP parsers? I'm only really interested in iCal files of the recent or most popular versions.

I'm guessing the answer is "yes", seeing as events have their own DTSTAMP, DTSTART and DTEND properties, but I want to be sure that a parser (in PHP) can cope with this.

Auberon Vacher
  • 4,655
  • 1
  • 24
  • 36
Bojangles
  • 99,427
  • 50
  • 170
  • 208
  • 1
    Since iCal uses the iCalendar file format (duh), which is actually a widely-used format for calendar applications, I think your question is fine here. – BoltClock Dec 14 '11 at 18:23
  • @BoltClock Thanks for the edit. I was referring more to the `.ical` extension than the app itself. And yes, it's obvious that iCal uses the iCalendar format. Thanks for clearing that up :-) – Bojangles Dec 14 '11 at 19:05

1 Answers1

1

yes, it is, as defined in the RFC 5545 (which does not say anything about disallowing it)

Community
  • 1
  • 1
Lars
  • 5,757
  • 4
  • 25
  • 55