androidStringToRecurrenceSet

fun <T : DateListProperty> androidStringToRecurrenceSet(dbStr: String, tzRegistry: TimeZoneRegistry, allDay: Boolean, exclude: Long? = null, generator: (DateList) -> T): T

Takes a formatted string as provided by the Android calendar provider and returns a DateListProperty constructed from these values.

Return

instance of "type" containing the parsed dates/times from the string

Parameters

dbStr

formatted string from Android calendar provider (RDATE/EXDATE field) expected format: "TZID;date1,date2,date3" where date is "yyyymmddThhmmssZ"

tzRegistry

time zone registry

allDay

true: list will contain DATE values; false: list will contain DATE_TIME values

exclude

this time stamp won't be added to the DateListProperty

generator

generates the DateListProperty; must call the constructor with the one argument of type DateList

Throws

when the string cannot be parsed