AddToCalendar.Event (add_to_calendar v0.1.0)

Copy Markdown View Source

Struct representing a calendar event with explicit date, time, and timezone fields.

Using separate Date and Time structs (rather than a DateTime) avoids the need for a timezone database dependency — the timezone string is passed through to calendar providers as-is.

Summary

Types

t()

@type t() :: %AddToCalendar.Event{
  description: String.t() | nil,
  end_date: Date.t(),
  end_time: Time.t(),
  location: String.t() | nil,
  name: String.t(),
  start_date: Date.t(),
  start_time: Time.t(),
  timezone: String.t(),
  uid: String.t() | nil
}