View Source Interval.NaiveDateTime (Interval v0.3.4)

Represents a continuous interval containing Elixir.NaiveDateTime

Link to this section Summary

Types

t()

An interval of point type Elixir.NaiveDateTime

Functions

Callback implementation for Interval.Behaviour.discrete?/0.

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Callback implementation for Interval.Behaviour.new/1.

Callback implementation for Interval.Behaviour.point_valid?/1.

Callback implementation for Interval.Behaviour.size/1.

Link to this section Types

@type t() :: %Interval.NaiveDateTime{left: term(), right: term()}

An interval of point type Elixir.NaiveDateTime

Link to this section Functions

@spec discrete?() :: false

Callback implementation for Interval.Behaviour.discrete?/0.

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

@spec new(Keyword.t()) :: Interval.t()

Callback implementation for Interval.Behaviour.new/1.

@spec point_compare(NaiveDateTime.t(), NaiveDateTime.t()) :: :lt | :eq | :gt

Callback implementation for Interval.Behaviour.point_compare/2.

Link to this function

point_step(naive_date_time, n)

View Source
@spec point_step(NaiveDateTime.t(), any()) :: nil

Callback implementation for Interval.Behaviour.point_step/2.

@spec point_valid?(NaiveDateTime.t()) :: boolean()

Callback implementation for Interval.Behaviour.point_valid?/1.

@spec size(t()) :: integer() | nil

Callback implementation for Interval.Behaviour.size/1.