vobject v0.1.0 ICalendar.Util.KV View Source

Build ICalendar key-value strings

Link to this section Summary

Functions

Convert a key and value to an iCal line

Link to this section Functions

Convert a key and value to an iCal line:

iex> ICalendar.Util.KV.build(“foo”, “bar”) “foo:bar\n”

Don’t add empty values:

iex> ICalendar.Util.KV.build(“foo”, nil) “”

DateTime values will add timezones:

iex> date = …> {{2015, 12, 24}, {8, 30, 0}} …> |> Timex.to_datetime(“America/Chicago”) …> ICalendar.Util.KV.build(“foo”, date) “foo;TZID=America/Chicago:20151224T083000\n”