Interval.NaiveDateTimeInterval (Interval v2.0.1)
View SourceRepresents a continuous interval containing NaiveDateTime
Defines a struct with two fields, left
and right
, representing the left and right endpoints of the interval.
The endpoint fields are of type t:Interval.endpoint(NaiveDateTime)
This module delegates most functionality to the Interval
module.
Summary
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.new/3
.
Types
@type point() :: term()
An interval of point type NaiveDateTime
Functions
See Interval.adjacent?/2
.
See Interval.contains?/2
.
@spec discrete?() :: false
Callback implementation for Interval.Behaviour.discrete?/0
.
Callback implementation for Ecto.Type.embed_as/1
.
See Interval.empty?/1
.
Callback implementation for Ecto.Type.equal?/2
.
See Interval.format/1
.
See Interval.left/1
.
Callback implementation for Interval.Behaviour.new/1
.
@spec new( left :: point() | nil | :unbounded | :empty, right :: point() | nil | :unbounded | :empty, bounds :: Interval.strbounds() ) :: t()
Callback implementation for Interval.Behaviour.new/3
.
See Interval.overlaps?/2
.
See Interval.partition/2
.
See Interval.right/1
.
See Interval.union/2
.