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

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).

Link to this section Summary

Functions

Extracts the basic information about a list of events, that is start-datetime, end-datetime, and the summary.

Formats the list of events by grouping them per day

Extracts all events having start and end within the same day. Returns a list of events.

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 different 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

@spec basic_info(events :: [Excalt.Event.t()]) :: [
  {DateTime.t(), DateTime.t(), String.t()}
]

Extracts the basic information about a list of events, that is start-datetime, end-datetime, and the summary.

@spec daily_grouping(events :: [Excalt.Event.t()]) :: [[Excalt.Event.t()]]

Formats the list of events by grouping them per day

@spec intraday_events(events :: [String.t()]) :: [Excalt.Event.t()]

Extracts all events having start and end within the same day. Returns a list of events.

@spec intraday_txt(events :: [Excalt.Event.t()]) :: String.t()

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 different day. The input is the list of events as returned by Excalt.Event.parsed_list!/6).

@spec multiday_txt(events :: [Excalt.Event.t()]) :: String.t()

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