Struct DuckDBTimeOnly
public readonly struct DuckDBTimeOnly : IEquatable<DuckDBTimeOnly>
- Implements
- Inherited Members
Constructors
DuckDBTimeOnly(byte, byte, byte)
public DuckDBTimeOnly(byte hour, byte min, byte sec)
Parameters
DuckDBTimeOnly(byte, byte, byte, int)
public DuckDBTimeOnly(byte hour, byte min, byte sec, int microsecond)
Parameters
Properties
Hour
public byte Hour { get; }
Property Value
Microsecond
public int Microsecond { get; }
Property Value
Min
public byte Min { get; }
Property Value
Sec
public byte Sec { get; }
Property Value
Ticks
public long Ticks { get; }
Property Value
Methods
Equals(DuckDBTimeOnly)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DuckDBTimeOnly other)
Parameters
otherDuckDBTimeOnlyAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Operators
explicit operator DateTime(DuckDBTimeOnly)
public static explicit operator DateTime(DuckDBTimeOnly timeOnly)
Parameters
timeOnlyDuckDBTimeOnly
Returns
explicit operator DuckDBTimeOnly(DateTime)
public static explicit operator DuckDBTimeOnly(DateTime dateTime)
Parameters
dateTimeDateTime
Returns
implicit operator TimeOnly(DuckDBTimeOnly)
public static implicit operator TimeOnly(DuckDBTimeOnly time)
Parameters
timeDuckDBTimeOnly
Returns
implicit operator DuckDBTimeOnly(TimeOnly)
public static implicit operator DuckDBTimeOnly(TimeOnly time)
Parameters
timeTimeOnly