AntlUtilsElixir.DateTime.Period (antl_utils_elixir v1.4.5)
Period
Link to this section Summary
Link to this section Types
Specs
t() :: %{start_at: nil | DateTime.t(), end_at: nil | DateTime.t()} | %{struct: atom(), start_at: nil | DateTime.t(), end_at: nil | DateTime.t()}
Link to this section Functions
Link to this function
filter_by_status(periods, status, datetime, start_key \\ :start_at, end_key \\ :end_at)
Specs
Link to this function
get_status(map, datetime)
Specs
get_status(t(), DateTime.t()) :: :ended | :ongoing | :scheduled
Link to this function
get_status(period, datetime, start_at_key, end_at_key)
Specs
get_status(map(), DateTime.t(), atom(), atom()) :: :ended | :ongoing | :scheduled
Link to this function
included?(a, b)
Specs
Link to this function