ical
The ICal library provides functions related to the iCalendar specification.
Engine Compatibility
This library has not yet been ported to the New Pico Engine
Functions
ical:from_array(<entry array>, <meta map>)
Formats a iCalendar calendar string.
This function takes an array of maps representing the iCalendar entries to be formatted and a map with meta data about the calendar.
Each map in the entry array can have the following properties
name | description | required | repeatable |
|---|---|---|---|
| Start time of event | yes |
|
| End time of event | unless |
|
| Time event lasts | unless |
|
| Short summary of event |
|
|
| Long description |
|
|
| Name of organizer |
|
|
| Location of event |
|
|
| Latlong coordinates of event |
|
|
| URL associated with event |
|
|
| Universal identifier | yes |
|
| Comment or not |
| yes |
| People attending event (see spec) |
| yes |
This list is not exhaustive. Other valid properties of iCalendar events are also supported according to the specification.
The function automatically adds a UID property to each iCalendar entry if one is not provided.
The meta map is optional and contains two mappings:
name | description |
|---|---|
| Name of the calendar |
| Description of calendar |