Ecto.DateTime
An Ecto type for dates and times.
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 |
from_date_and_time(date, time) | Converts the given |
load(arg1) | Converts a |
local() | Returns an |
to_date(datetime) | Converts |
to_string(datetime) | Converts |
to_time(datetime) | Converts |
type() | The Ecto primitive type |
utc() | Returns an |
Functions
Datetimes are blank when given as strings and the string is blank.
Casts to date time.
Converts an Ecto.DateTime
into a {date, time}
tuple.
Converts the given Ecto.Date
and Ecto.Time
into Ecto.DateTime
.
Converts a {date, time}
tuple into an Ecto.DateTime
.
Returns an Ecto.DateTime
in local time.
Converts Ecto.DateTime
into an Ecto.Date
.
Converts Ecto.DateTime
to its ISO 8601 UTC string representation.
Converts Ecto.DateTime
into an Ecto.Time
.
The Ecto primitive type.
Returns an Ecto.DateTime
in UTC.