Convert between memo maps (the :dgknght.memos/memo spec) and iCalendar
VJOURNAL components.
The DESCRIPTION becomes the memo's :description unless there's more than one, which RFC 5545 allows for a VJOURNAL but the memo map can't hold.
Properties that aren't modeled, such as a recurrence rule or a
RELATED-TO, are kept as iCalendar text under :extra-properties. Other
VJOURNALs in the calendar, such as an overridden occurrence, are kept under
:extra-vjournals. Time zone definitions any of these need that can't be
regenerated from the time zone database are kept under :extra-timezones.
Serializing writes them back, so a parse/serialize round trip doesn't drop
data written by other clients.
Convert between memo maps (the `:dgknght.memos/memo` spec) and iCalendar VJOURNAL components. The DESCRIPTION becomes the memo's :description unless there's more than one, which RFC 5545 allows for a VJOURNAL but the memo map can't hold. Properties that aren't modeled, such as a recurrence rule or a RELATED-TO, are kept as iCalendar text under `:extra-properties`. Other VJOURNALs in the calendar, such as an overridden occurrence, are kept under `:extra-vjournals`. Time zone definitions any of these need that can't be regenerated from the time zone database are kept under `:extra-timezones`. Serializing writes them back, so a parse/serialize round trip doesn't drop data written by other clients.
(parse s)Parses a VCALENDAR string and returns the memo it contains, or nil if it has no VJOURNAL. When there are several VJOURNALs, the memo is the one without a RECURRENCE-ID, and the others are kept as :extra-vjournals.
Parses a VCALENDAR string and returns the memo it contains, or nil if it has no VJOURNAL. When there are several VJOURNALs, the memo is the one without a RECURRENCE-ID, and the others are kept as :extra-vjournals.
(serialize memo)Returns a VCALENDAR string containing the memo as a VJOURNAL, generating a :uid if the memo doesn't have one. Throws an ex-info whose data includes the spec's :explain data if the memo isn't a valid :dgknght.memos/memo.
Returns a VCALENDAR string containing the memo as a VJOURNAL, generating a :uid if the memo doesn't have one. Throws an ex-info whose data includes the spec's :explain data if the memo isn't a valid :dgknght.memos/memo.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |