Ecto.DateTime

An Ecto type that includes a date and a time.

Source

Summary

cast(dt)

Casts to date time

dump(datetime)

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

from_date_and_time(date, time)

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

load(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_iso8601(datetime)

Converts Ecto.DateTime to its ISO 8601 UTC representation

to_string(datetime)

Converts Ecto.DateTime to its string representation

to_time(datetime)

Converts Ecto.DateTime into an Ecto.Time

type()

The Ecto primitive type

utc()

Returns an Ecto.DateTime in UTC

Functions

cast(dt)

Casts to date time.

Source
dump(datetime)

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

Source
from_date_and_time(date, time)

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

Source
load(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_iso8601(datetime)

Converts Ecto.DateTime to its ISO 8601 UTC representation.

Source
to_string(datetime)

Converts Ecto.DateTime to its string representation.

Source
to_time(datetime)

Converts Ecto.DateTime into an Ecto.Time.

Source
type()

The Ecto primitive type.

Source
utc()

Returns an Ecto.DateTime in UTC.

Source