Gel.RelativeDuration (Gel v0.9.0)
View SourceAn 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
@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.