Ecto.Time

An Ecto type for time.

Source

Summary

cast(t)

Casts to time

compare(t1, t2)

Compare two times

dump(arg1)

Converts an Ecto.Time into a time tuple (in the form `{hour, min, sec, usec}`)

from_erl(arg)

Returns an Ecto.Time from an Erlang time tuple

load(time)

Converts a time tuple like the one returned by dump/1 into an Ecto.Time

local()

Returns an Ecto.Time in local time

to_erl(time)

Returns an Erlang time tuple from an Ecto.Time

to_iso8601(time)

Converts Ecto.Time to its ISO 8601 UTC representation

to_string(time)

Converts Ecto.Time to a string representation

type()

The Ecto primitive type

utc()

Returns an Ecto.Time in UTC

Functions

cast(t)

Casts to time.

Source
compare(t1, t2)

Compare two times.

Receives two times and compares the t1 against t2 and returns :lt, :eq or :gt.

Source
dump(arg1)

Converts an Ecto.Time into a time tuple (in the form `{hour, min, sec, usec}`).

Source
from_erl(arg)

Returns an Ecto.Time from an Erlang time tuple.

Source
load(time)

Converts a time tuple like the one returned by dump/1 into an Ecto.Time.

Source
local()

Returns an Ecto.Time in local time.

Source
to_erl(time)

Returns an Erlang time tuple from an Ecto.Time.

Source
to_iso8601(time)

Converts Ecto.Time to its ISO 8601 UTC representation.

Source
to_string(time)

Converts Ecto.Time to a string representation.

Source
type()

The Ecto primitive type.

Source
utc()

Returns an Ecto.Time in UTC.

Source