Struct DuckDbDate
DuckDB's representation of a date.
Inherited Members
Namespace: Mallard.Types
Assembly: Mallard.dll
Syntax
public struct DuckDbDate
Remarks
The fields are not wrapped in properties to allow vectorized processing (i.e. SIMD), and DuckDB already essentially guarantees a stable layout of this structure.
Constructors
| Edit this page View SourceDuckDbDate(int)
DuckDB's representation of a date.
Declaration
public DuckDbDate(int days)
Parameters
Type | Name | Description |
---|---|---|
int | days | The date represented as a number of days since the Unix epoch (January 1, 1970). |
Remarks
The fields are not wrapped in properties to allow vectorized processing (i.e. SIMD), and DuckDB already essentially guarantees a stable layout of this structure.
Fields
| Edit this page View SourceDays
Number of days since 1970-01-01 (Unix epoch).
Declaration
public int Days
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceFromDateOnly(DateOnly)
Convert from a standard DateOnly.
Declaration
public static DuckDbDate FromDateOnly(DateOnly date)
Parameters
Type | Name | Description |
---|---|---|
DateOnly | date | Desired date to represent in DuckDB. |
Returns
Type | Description |
---|---|
DuckDbDate | The DuckDB representation of the date. |
ToDateOnly()
Convert this instance to a standard DateOnly.
Declaration
public readonly DateOnly ToDateOnly()
Returns
Type | Description |
---|---|
DateOnly |