struct DuckDB::Interval
- DuckDB::Interval
- Struct
- Value
- Object
Defined in:
duckdb/interval.crConstructors
Instance Method Summary
- #==(other : self) : Bool
- #days : Int32
- #microseconds : Int64
- #months : Int32
- #to_month_span
-
#to_span(approx_months : Int | Nil = nil)
Create a
Time::Span
from thisDuckDB::Interval
If the interval covered in the interval exceeds the range ofTime::Span
then an exception is raised. - #to_spans
Constructor Detail
Instance Method Detail
def to_span(approx_months : Int | Nil = nil)
#
Create a Time::Span
from this DuckDB::Interval
If the interval covered in the interval exceeds the range of Time::Span
then an exception is raised.