API Reference Periods v#0.2.0

Copy Markdown View Source

Modules

Periods increments of time.

Provides a type for Ecto to store a Period of time. The underlying data type should be a map(JSON). Suitable for databases that do not support composite types, but support JSON (e.g. MySQL and versions of CockroachDB).

A struct representing an increment of time as an integer amount of a unit.