SysTime.Period (SysTime v0.1.0)

Copy Markdown View Source

The system period of one row version.

to: nil denotes the current, open-ended version.

Summary

Functions

Returns whether the period has no upper bound.

Callback implementation for Ecto.Type.embed_as/1.

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

Types

t()

@type t() :: %SysTime.Period{from: DateTime.t(), to: DateTime.t() | nil}

Functions

current?(period)

@spec current?(t()) :: boolean()

Returns whether the period has no upper bound.

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

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