Ecto.Date

An Ecto type for dates.

Source

Summary

cast(d)

Casts to date

dump(date)

Converts an Ecto.Date into a date triplet

from_erl(arg)

Returns an Ecto.Date from an Erlang date tuple

load(arg)

Converts a date triplet into an Ecto.Date

local()

Returns an Ecto.Date in local time

to_erl(date)

Returns an Erlang date tuple from an Ecto.Date

to_iso8601(date)

Converts Ecto.Date to ISO8601 representation

to_string(date)

Converts Ecto.Date to a readable string representation

type()

The Ecto primitive type

utc()

Returns an Ecto.Date in UTC

Functions

cast(d)

Casts to date.

Source
dump(date)

Converts an Ecto.Date into a date triplet.

Source
from_erl(arg)

Returns an Ecto.Date from an Erlang date tuple.

Source
load(arg)

Converts a date triplet into an Ecto.Date.

Source
local()

Returns an Ecto.Date in local time.

Source
to_erl(date)

Returns an Erlang date tuple from an Ecto.Date.

Source
to_iso8601(date)

Converts Ecto.Date to ISO8601 representation.

Source
to_string(date)

Converts Ecto.Date to a readable string representation.

Source
type()

The Ecto primitive type.

Source
utc()

Returns an Ecto.Date in UTC.

Source