calecto v0.5.2 Calecto.NaiveDateTime

Calendar NaiveDateTime for Ecto

Summary

Functions

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

Casts to datetime

Converts to erlang style tuples

Converts erlang style tuples to Calendar.NaiveDateTime

The Ecto primitive type

Functions

blank?(value)

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

cast(ndt)

Casts to datetime.

cast!(datetime)
dump(dt)

Converts to erlang style tuples

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

Converts erlang style tuples to Calendar.NaiveDateTime

to_micro_erl(dt)
type()

The Ecto primitive type.