Gel.RelativeDuration (Gel v0.9.0)

View Source

An immutable value represeting an Gel cal::relative_duration value.

iex(1)> {:ok, client} = Gel.start_link()
iex(2)> Gel.query_required_single!(client, "select <cal::relative_duration>'45.6 seconds'")
#Gel.RelativeDuration<"PT45.6S">

Summary

Types

t()

An immutable value represeting an Gel cal::relative_duration value.

Types

t()

@type t() :: %Gel.RelativeDuration{
  days: pos_integer(),
  microseconds: pos_integer(),
  months: pos_integer()
}

An immutable value represeting an Gel cal::relative_duration value.

Fields:

  • :months - number of months.
  • :days - number of days.
  • :microseconds - number of microseconds.