struct

DuckDB::Date

Inherits Struct / Value / Object

Constructors

new(year : Int32, month : Int32, day : Int32)
Source
new(time : Time)
Source
new(string : String)
Source
new(days : Int32)

Days since Time::UNIX_EPOCH

Source

Instance methods

==(other : self) : Bool
Source
month
Source
to_s

Returns the date with an ISO 8601 format.

Source
to_time

Returns a Time instance with the respective date in UTC.

Source
year
Source