Mallard
Search Results for

    Show / Hide Table of Contents

    Struct DuckDbDate

    DuckDB's representation of a date.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Source

    DuckDbDate(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 Source

    Days

    Number of days since 1970-01-01 (Unix epoch).

    Declaration
    public int Days
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    FromDateOnly(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.

    | Edit this page View Source

    ToDateOnly()

    Convert this instance to a standard DateOnly.

    Declaration
    public readonly DateOnly ToDateOnly()
    Returns
    Type Description
    DateOnly
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX