vobject v0.1.0 ICalendar.Util.RRULE View Source

This module handles the implementation detail of RRULE properties

Link to this section Summary

Functions

This function is used by the Value module to serialize %RRULE{} structs into RRULE iCalendar strings

Link to this section Functions

This function is used by the Value module to serialize %RRULE{} structs into RRULE iCalendar strings.

iex> rrule = %ICalendar.RRULE{frequency: :daily}
...> key   = :frequency
...> ICalendar.Util.RRULE.serialize(rrule, key)
"FREQ=DAILY"

It can handle multiple values in a list format:

iex> rrule = %ICalendar.RRULE{
...>   by_day: [:monday, :tuesday]
...> }
...> key   = :by_day
...> ICalendar.Util.RRULE.serialize(rrule, key)
"BYDAY=MO,TU"