Liking cljdoc? Tell your friends :D

dgknght.ical

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`.
raw docstring

add-extras!clj

(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`.
raw docstring

build-calendarclj

(build-calendar s)

Parses iCalendar text holding a VCALENDAR.

Parses iCalendar text holding a VCALENDAR.
raw docstring

categories-valueclj

(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.
raw docstring

componentsclj

(components cal comp-name)

The calendar's components with the name, e.g. VTODO.

The calendar's components with the name, e.g. VTODO.
raw docstring

content-lineclj

(content-line x)

The iCalendar text of a property or component.

The iCalendar text of a property or component.
raw docstring

date-list-linesclj

(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).
raw docstring

date-setclj

(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.
raw docstring

date-valueclj

(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.
raw docstring

extra-timezonesclj

(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.
raw docstring

instant-valueclj

(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.
raw docstring

namedclj

(named prop-name props)

The properties with the name.

The properties with the name.
raw docstring

parameter-valueclj

(parameter-value prop param-name)

parse-componentsclj

(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.
raw docstring

period-rdate?clj

(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.
raw docstring

propertiesclj

(properties component)

propertyclj

(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.
raw docstring

property-timezone-idsclj

(property-timezone-ids props)

The TZIDs referenced by the properties.

The TZIDs referenced by the properties.
raw docstring

property-valueclj

(property-value component prop-name)

subcomponentsclj

(subcomponents component)

timezone-idsclj

(timezone-ids comps)

The TZIDs referenced by the given components, including their subcomponents.

The TZIDs referenced by the given components, including their
subcomponents.
raw docstring

utc->instantclj

(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.
raw docstring

write-calendarclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close