View Source EdgeDB.RelativeDuration (EdgeDB v0.4.0)

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

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

Link to this section Summary

Types

t()

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

Link to this section Types

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

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

Fields:

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