struct DuckDB::Interval

Defined in:

duckdb/interval.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(microseconds : Int64 = 0, days : Int32 = 0, months : Int32 = 0) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def days : Int32 #

[View source]
def microseconds : Int64 #

[View source]
def months : Int32 #

[View source]
def to_month_span #

[View source]
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.


[View source]
def to_spans #

[View source]