android String To Recurrence Set
fun <T : DateListProperty<*>> androidStringToRecurrenceSet(dbStr: String, allDay: Boolean, exclude: Instant? = 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
db Str
formatted string from Android calendar provider (RDATE/EXDATE field) expected format: [TZID;]date1,date2,date3 where date is yyyymmddThhmmss[Z]
all Day
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 net.fortuna.ical4j.model.DateList
Throws
if one of the datestrings cannot be parsed
if the TZID has an invalid format
if the TZID is a region ID that cannot be found