View Source FLHook.Duration (FLHook Client v1.0.0)

A struct that represents a duration.

Link to this section Summary

Functions

Parses the given value and returns the duration on success or an error.

Link to this section Types

Specs

t() :: %FLHook.Duration{
  days: non_neg_integer(),
  hours: non_neg_integer(),
  minutes: non_neg_integer(),
  seconds: non_neg_integer()
}

Link to this section Functions

Specs

parse(t() | String.t()) :: {:ok, t()} | :error

Parses the given value and returns the duration on success or an error.