Struct DuckDbTime
DuckDB's representation of a time of day.
Inherited Members
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 SourceDuckDbTime(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 SourceMicroseconds
Number of microseconds elapsed since midnight.
Declaration
public readonly long Microseconds
Field Value
Type | Description |
---|---|
long |
Methods
| Edit this page View SourceToTimeOnly()
Convert to a TimeOnly instance.
Declaration
public TimeOnly ToTimeOnly()
Returns
Type | Description |
---|---|
TimeOnly |