EncodeICalEvent (open)

Encodes a single ICal event

Syntax

LOADLIB "wh::filetypes/icalendar.whlib";

STRING FUNCTION EncodeICalEvent(RECORD event)

Parameters

RECORD event

Event to encode

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

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

Return value

STRING

Encoded event