Ecto.DateTime

An Ecto type for dates and times.

Source

Summary

from_date_and_time(date, time)

Converts the given Ecto.Date and Ecto.Time into Ecto.DateTime

from_erl(arg1)

Converts a {date, time} tuple into an Ecto.DateTime

local()

Returns an Ecto.DateTime in local time

to_date(datetime)

Converts Ecto.DateTime into an Ecto.Date

to_erl(datetime)

Converts an Ecto.DateTime into a {date, time} tuple

to_time(time)

Converts Ecto.DateTime into an Ecto.Time

utc()

Returns an Ecto.DateTime in UTC

Functions

from_date_and_time(date, time)

Converts the given Ecto.Date and Ecto.Time into Ecto.DateTime.

Source
from_erl(arg1)

Converts a {date, time} tuple into an Ecto.DateTime.

Source
local()

Returns an Ecto.DateTime in local time.

Source
to_date(datetime)

Converts Ecto.DateTime into an Ecto.Date.

Source
to_erl(datetime)

Converts an Ecto.DateTime into a {date, time} tuple.

Source
to_time(time)

Converts Ecto.DateTime into an Ecto.Time.

Source
utc()

Returns an Ecto.DateTime in UTC.

Source