View Source Arke.Core.Parameter.Time (Arke v1.1.33)

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