Ecto.DateTime

An Ecto type for dates and times.

Source

Summary

blank?(value)

Datetimes are blank when given as strings and the string is blank

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_string(datetime)

Converts Ecto.DateTime to its ISO 8601 UTC 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

blank?(value)

Datetimes are blank when given as strings and the string is blank.

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

Converts Ecto.DateTime to its ISO 8601 UTC 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