calecto v0.4.4 Calecto.DateTimeUTC

Calendar DateTime for Ecto for representing only UTC datetimes

Summary

Functions

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

Casts to datetime

Converts to erlang style tuples with microseconds added

Converts erlang style tuples to Calendar.DateTime

The Ecto primitive type

Functions

blank?(value)

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

cast(dt)

Casts to datetime.

cast!(datetime)
dump(dt)

Converts to erlang style tuples with microseconds added

from_erl(arg)
from_erl!(tuple)
load(arg1)

Converts erlang style tuples to Calendar.DateTime

to_calendar_date_time(calecto_dt_utc)
to_micro_erl(date_time_u_t_c)
type()

The Ecto primitive type.