Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var prodId: ProdId

Default PRODID used when generating iCalendars. If you want another value, set it statically before writing the first iCalendar.

Functions

Link copied to clipboard
fun fromReader(reader: Reader, properties: MutableMap<String, String>? = null): Calendar

Parses an iCalendar resource and applies ICalPreprocessor to increase compatibility.

Link copied to clipboard
fun minifyVTimeZone(originalTz: VTimeZone, start: Date?): VTimeZone

Minifies a VTIMEZONE so that only these observances are kept:

Link copied to clipboard
fun prodId(userAgents: List<String>): ProdId
Link copied to clipboard
fun softValidate(ical: Calendar)

Validates an iCalendar resource.

Link copied to clipboard

Takes a string with a timezone definition and returns the time zone ID.

Link copied to clipboard
fun vAlarmToMin(alarm: VAlarm, reference: ICalendar, allowRelEnd: Boolean): Pair<Related, Int>?

Calculates the minutes before/after an event/task a given alarm occurs.