iCalendar (RFC 5545) helpers over ical4j that don't depend on the type of component, shared by the namespaces that convert between a component, such as a VTODO, and a map.
Dates and times are java.time values: a LocalDate (all-day), LocalDateTime (floating), ZonedDateTime (local time in a time zone) or Instant (UTC).
Data a map doesn't model is kept as iCalendar text, so that a
parse/serialize round trip doesn't drop data written by other clients:
properties under :extra-properties, subcomponents (e.g. VALARM) under
:extra-components, and time zone definitions that can't be regenerated
from the time zone database under :extra-timezones.
iCalendar (RFC 5545) helpers over ical4j that don't depend on the type of component, shared by the namespaces that convert between a component, such as a VTODO, and a map. Dates and times are java.time values: a LocalDate (all-day), LocalDateTime (floating), ZonedDateTime (local time in a time zone) or Instant (UTC). Data a map doesn't model is kept as iCalendar text, so that a parse/serialize round trip doesn't drop data written by other clients: properties under `:extra-properties`, subcomponents (e.g. VALARM) under `:extra-components`, and time zone definitions that can't be regenerated from the time zone database under `:extra-timezones`.
(add-extras! component lines timezones)Adds the properties and subcomponents kept as iCalendar text to the
component, and returns it. The time zones are as for parse-components.
Adds the properties and subcomponents kept as iCalendar text to the component, and returns it. The time zones are as for `parse-components`.
(build-calendar s)Parses iCalendar text holding a VCALENDAR.
Parses iCalendar text holding a VCALENDAR.
(categories-value component)The tags from every CATEGORIES property, since some clients write one property per tag and others a comma-separated list.
The tags from every CATEGORIES property, since some clients write one property per tag and others a comma-separated list.
(components cal comp-name)The calendar's components with the name, e.g. VTODO.
The calendar's components with the name, e.g. VTODO.
(content-line x)The iCalendar text of a property or component.
The iCalendar text of a property or component.
(date-list-lines prop-name dates)Content lines for the dates, one for each kind of date (since they share the parameters).
Content lines for the dates, one for each kind of date (since they share the parameters).
(date-set component prop-name)The dates and times from every property with the name, e.g. EXDATE, leaving out an RDATE of periods.
The dates and times from every property with the name, e.g. EXDATE, leaving out an RDATE of periods.
(date-value component prop-name)The value of a date or time property, e.g. DTSTART.
The value of a date or time property, e.g. DTSTART.
(extra-timezones cal tzids)The text of the calendar's VTIMEZONEs for those of the TZIDs that can't be regenerated from the time zone database, or nil if there are none.
The text of the calendar's VTIMEZONEs for those of the TZIDs that can't be regenerated from the time zone database, or nil if there are none.
(instant-value component prop-name)The value of a timestamp property, e.g. CREATED, as an Instant.
The value of a timestamp property, e.g. CREATED, as an Instant.
(named prop-name props)The properties with the name.
The properties with the name.
(parameter-value prop param-name)(parse-components lines comp-name timezones)Parses components kept as iCalendar text, returning those with the name.
The time zones (as kept under :extra-timezones) define any TZIDs they
use that aren't in the time zone database.
Parses components kept as iCalendar text, returning those with the name. The time zones (as kept under `:extra-timezones`) define any TZIDs they use that aren't in the time zone database.
(period-rdate? prop)Whether the RDATE holds periods, which a date set can't.
Whether the RDATE holds periods, which a date set can't.
(properties component)(property component prop-name)The component's first property with the name, or nil if it has none.
The component's first property with the name, or nil if it has none.
(property-timezone-ids props)The TZIDs referenced by the properties.
The TZIDs referenced by the properties.
(property-value component prop-name)(subcomponents component)(timezone-ids comps)The TZIDs referenced by the given components, including their subcomponents.
The TZIDs referenced by the given components, including their subcomponents.
(utc->instant t)A time in UTC is written as UTC (with a Z) rather than with a TZID.
A time in UTC is written as UTC (with a Z) rather than with a TZID.
(write-calendar comps extra-timezones)Returns a VCALENDAR string holding the components and the VTIMEZONEs
they use, taken from the extra timezones (as kept under
:extra-timezones) or else generated from the time zone database.
Returns a VCALENDAR string holding the components and the VTIMEZONEs they use, taken from the extra timezones (as kept under `:extra-timezones`) or else generated from the time zone database.
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 |