View Source Excalt.Helpers.EventFormatter (Excalt v0.1.1)

Link to this section Summary

Functions

Extracts the basic information about a list of events

Formats the list of events by grouping them per day

Returns the filtered list of events containing only the events that start and end in the same day. The input is the list of events as returned by Excalt.Event.parsed_list!/6).

Formats the list of intraday-events into a human-readable text.

Returns the filtered list of events containing only the events where the start and end are on a differnt day. The input is the list of events as returned by Excalt.Event.parsed_list!/6).

Formats the list of multiday-events into a human-readable text.

Link to this section Functions

Extracts the basic information about a list of events

Formats the list of events by grouping them per day

@spec intraday_events(events :: [Excalt.Event.t()]) ::
  {[Excalt.Event.t()], [Excalt.Event.t()]}

Returns the filtered list of events containing only the events that start and end in the same day. The input is the list of events as returned by Excalt.Event.parsed_list!/6).

Formats the list of intraday-events into a human-readable text.

@spec multiday_events(events :: [Excalt.Event.t()]) ::
  {[Excalt.Event.t()], [Excalt.Event.t()]}

Returns the filtered list of events containing only the events where the start and end are on a differnt day. The input is the list of events as returned by Excalt.Event.parsed_list!/6).

Formats the list of multiday-events into a human-readable text.