Mallard
Search Results for

    Show / Hide Table of Contents

    Struct DuckDbTime

    DuckDB's representation of a time of day.

    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 readonly struct DuckDbTime
    Remarks

    This type exists mainly to enable time-of-day values reported by DuckDB to be read directly from the memory of a DuckDB vector. 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

    DuckDbTime(long)

    DuckDB's representation of a time of day.

    Declaration
    public DuckDbTime(long microseconds)
    Parameters
    Type Name Description
    long microseconds

    The time of day represented as the number of microseconds since midnight.

    Remarks

    This type exists mainly to enable time-of-day values reported by DuckDB to be read directly from the memory of a DuckDB vector. 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

    Microseconds

    Number of microseconds elapsed since midnight.

    Declaration
    public readonly long Microseconds
    Field Value
    Type Description
    long

    Methods

    | Edit this page View Source

    ToTimeOnly()

    Convert to a TimeOnly instance.

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