View Source Arke.Core.Parameter.Time (Arke v0.3.6)

Module that define the struct of a Time by extending the Arke.Core.Parameter.base_parameters().

accepted-values

Accepted values

Date accepts the following format as values:

  • string => "HH:MM:SS" (separator must be - hyphen)

  • sigil => ~T[HH:MM:SS] (separator must be - hyphen)

  • struct => %Time{}

    {arke_struct} = Parameter.Date

element-added

Element added

  • default => values => default value

## Example

  iex> params = [id: :time_test, default: "23:14:15"]
  ...> Arke.Core.Parameter.new(%{type: :time, opts: params})

## Return

  %Arke.Core.Parameter.Time{}

Link to this section Summary

Link to this section Functions

Link to this function

after_get_struct(arke, struct)

View Source
Link to this function

after_get_struct(arke, unit, struct)

View Source
Link to this function

before_create(arke, unit)

View Source
Link to this function

before_delete(arke, unit)

View Source
Link to this function

before_load(data, persistence_fn)

View Source
Link to this function

before_struct_encode(_, unit)

View Source
Link to this function

before_update(arke, unit)

View Source
Link to this function

before_update(arke, old_unit, unit)

View Source
Link to this function

before_validate(arke, unit)

View Source
Link to this function

on_load(data, persistence_fn)

View Source
Link to this function

on_struct_encode(_, _, data, opts)

View Source
Link to this function

on_update(arke, old_unit, unit)

View Source