Table of Contents

Struct DuckDBTimeOnly

Namespace
DuckDB.NET.Native
Assembly
DuckDB.NET.Bindings.dll
public readonly struct DuckDBTimeOnly : IEquatable<DuckDBTimeOnly>
Implements
Inherited Members

Constructors

DuckDBTimeOnly(byte, byte, byte)

public DuckDBTimeOnly(byte hour, byte min, byte sec)

Parameters

hour byte
min byte
sec byte

DuckDBTimeOnly(byte, byte, byte, int)

public DuckDBTimeOnly(byte hour, byte min, byte sec, int microsecond)

Parameters

hour byte
min byte
sec byte
microsecond int

Properties

Hour

public byte Hour { get; }

Property Value

byte

Microsecond

public int Microsecond { get; }

Property Value

int

Min

public byte Min { get; }

Property Value

byte

Sec

public byte Sec { get; }

Property Value

byte

Ticks

public long Ticks { get; }

Property Value

long

Methods

Equals(DuckDBTimeOnly)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DuckDBTimeOnly other)

Parameters

other DuckDBTimeOnly

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToDateTime()

public DateTime ToDateTime()

Returns

DateTime

Operators

explicit operator DateTime(DuckDBTimeOnly)

public static explicit operator DateTime(DuckDBTimeOnly timeOnly)

Parameters

timeOnly DuckDBTimeOnly

Returns

DateTime

explicit operator DuckDBTimeOnly(DateTime)

public static explicit operator DuckDBTimeOnly(DateTime dateTime)

Parameters

dateTime DateTime

Returns

DuckDBTimeOnly

implicit operator TimeOnly(DuckDBTimeOnly)

public static implicit operator TimeOnly(DuckDBTimeOnly time)

Parameters

time DuckDBTimeOnly

Returns

TimeOnly

implicit operator DuckDBTimeOnly(TimeOnly)

public static implicit operator DuckDBTimeOnly(TimeOnly time)

Parameters

time TimeOnly

Returns

DuckDBTimeOnly