View Source EdgeDB.RelativeDuration (EdgeDB v0.7.0)

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

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

Summary

Types

t()

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

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 days.
  • :microseconds - number of microseconds.