View Source EdgeDB.DateDuration (EdgeDB v0.7.0)

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

iex(1)> {:ok, client} = EdgeDB.start_link()
iex(2)> EdgeDB.query_required_single!(client, "select <cal::date_duration>'1 year 2 days'")
#EdgeDB.DateDuration<"P1Y2D">

Summary

Types

t()

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

Types

@type t() :: %EdgeDB.DateDuration{days: integer(), months: integer()}

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

Fields:

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