Struct NpgsqlInterval
A raw representation of the PostgreSQL interval datatype. Use only when TimeSpan or NodaTime
Period do not have sufficient range to handle your values.
Assembly: Npgsql.dll
Syntax
public readonly struct NpgsqlInterval : IEquatable<NpgsqlInterval>
Constructors
NpgsqlInterval(Int32, Int32, Int64)
Declaration
public NpgsqlInterval(int months, int days, long time)
Parameters
Properties
Days
Days, after time for alignment.
Declaration
public readonly int Days { get; }
Property Value
Months
Months and years, after time for alignment.
Declaration
public readonly int Months { get; }
Property Value
Time
Remaining time unit smaller than a day, in microseconds.
Declaration
public readonly long Time { get; }
Property Value
Methods
Equals(NpgsqlInterval)
Declaration
public readonly bool Equals(NpgsqlInterval other)
Parameters
Returns
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
Implements