struct DuckDB::Date

Defined in:

duckdb/date.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(year : Int32, month : Int32, day : Int32) #

[View source]
def self.new(time : Time) #

[View source]
def self.new(string : String) #

[View source]
def self.new(days : Int32) #

Days since Time::UNIX_EPOCH


[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def day : Int32 #

[View source]
def month : Int32 #

[View source]
def to_s #

Returns the date with an ISO 8601 format.


[View source]
def to_time #

Returns a Time instance with the respective date in UTC.


[View source]
def year : Int32 #

[View source]