EncodeICalCalendar (open)
Creates an ICal calendar file for events
Syntax
LOADLIB "wh::filetypes/icalendar.whlib";
STRING FUNCTION EncodeICalCalendar(RECORD ARRAY events, RECORD calendarsettings)Parameters
RECORD ARRAY eventsICal events
BOOLEAN alldayIgnore time, this is an all-day event. NOTE: Not part of the specification, but in HareScript there is no way to distinguish between a full date and time and only a date as both are represented using a DATETIME value
RECORD ARRAY attendeesList of attendees
STRING attendees.emailSTRING attendees.nameNaam (only exported when the email is set too)
STRING ARRAY categoriesList of categories for the event
STRING descriptionDescription of the event
DATETIME dtendEnd date and time
DATETIME dtstartStart date and time
STRING locationLocation, as string
STRING organizeremailE-mail address of the organizer
STRING organizernameName of the organizer (only exported when organizeremail is set)
STRING summaryShort event title
STRING timezoneThe timezone the start and end time are in (defaults to UTC, ignored for all-day events).
NOTE: Not part of the specification, but in HareScript DATETIME values don't have a timezone associated with them
STRING uidPersistent, globally unique identifier. An identifier will be generated automatically, but it may be overwritten afterwards
STRING urlURL for the event
RECORD calendarsettingsSettings
STRING calendarnamename of the calendar (keep empty if the iCal document must represent a single appointment or meeting!
STRING methodMethod (any of "", "publish", "request", "reply", "add", "cancel", "refresh", "counter", "declinecounter").
Return value
STRINGICal calendar file