Ecto.DateTime
An Ecto type that includes a date and a time.
Summary↑
| cast(dt) | Casts to date time |
| dump(date_time) | Converts an |
| from_date(date) | Converts the given |
| from_date_and_time(date, time) | Converts the given |
| from_erl(arg) | Returns an |
| load(arg) | Converts a |
| local() | Returns an |
| to_date(date_time) | Converts |
| to_erl(date_time) | Returns an Erlang datetime tuple from an |
| to_iso8601(date_time) | Converts |
| to_string(date_time) | Converts |
| to_time(date_time) | Converts |
| type() | The Ecto primitive type |
| utc() | Returns an |
Functions
Casts to date time.
Converts an Ecto.DateTime into a {date, time} tuple.
Converts the given Ecto.Date into Ecto.DateTime.
The time component is zero.
Converts the given Ecto.Date and Ecto.Time into Ecto.DateTime.
Returns an Ecto.DateTime from an Erlang datetime tuple.
Converts a {date, time} tuple into an Ecto.DateTime.
Returns an Ecto.DateTime in local time.
Converts Ecto.DateTime into an Ecto.Date.
Returns an Erlang datetime tuple from an Ecto.DateTime.
Converts Ecto.DateTime to its ISO 8601 UTC representation.
Converts Ecto.DateTime to its string representation.
Converts Ecto.DateTime into an Ecto.Time.
The Ecto primitive type.
Returns an Ecto.DateTime in UTC.