Arke.Core.Parameter.Date (Arke v0.1.3)
Module that define the struct of a Date by extending the Arke.Core.Parameter.base_parameters().
accepted-values
Accepted values
Date accepts the following format as values:
string => "YYYY-MM-DD" (separator must be - hyphen)
sigil => ~D[YYYY-MM-DD] (separator must be - hyphen)
struct => %Date{}
{arke_struct} = Parameter.Date
element-added
Element added
default
=> values => default value
## Example
iex> params = [id: :date_test, default: "1999-09-03"]
...> Arke.Core.Parameter.new(%{type: :date, opts: params})
## Return
%Arke.Core.Parameter.Date{}
Link to this section Summary
Link to this section Functions
Link to this function
arke_from_attr()
Link to this function
base_parameters()
Link to this function
before_create(arke, unit)
Link to this function
before_delete(arke, unit)
Link to this function
before_load(data, persistence_fn)
Link to this function
before_update(arke, unit)
Link to this function
before_validate(arke, unit)
Link to this function
groups_from_attr()
Link to this function
on_create(arke, unit)
Link to this function
on_delete(arke, unit)
Link to this function
on_load(data, persistence_fn)
Link to this function
on_update(arke, unit)
Link to this function