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 events
ICal events
BOOLEAN allday
Ignore 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 attendees
List of attendees
STRING attendees.email
STRING attendees.name
Naam (only exported when the email is set too)
STRING ARRAY categories
List of categories for the event
STRING description
Description of the event
DATETIME dtend
End date and time
DATETIME dtstart
Start date and time
STRING location
Location, as string
STRING organizeremail
E-mail address of the organizer
STRING organizername
Name of the organizer (only exported when organizeremail is set)
STRING summary
Short event title
STRING timezone
The 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 uid
Persistent, globally unique identifier. An identifier will be generated automatically, but it may be overwritten afterwards
STRING url
URL for the event
RECORD calendarsettings
Settings
STRING calendarname
name of the calendar (keep empty if the iCal document must represent a single appointment or meeting!
STRING method
Method (any of "", "publish", "request", "reply", "add", "cancel", "refresh", "counter", "declinecounter").
Return value
STRING
ICal calendar file