Struct NpgsqlInterval
A raw representation of the PostgreSQL interval datatype. Use only when
Implements
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public readonly struct NpgsqlInterval : IEquatable<NpgsqlInterval>
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Constructors
| Improve this Doc View SourceNpgsqlInterval(int, int, long)
Constructs an NpgsqlInterval.
Declaration
public NpgsqlInterval(int months, int days, long time)
Parameters
Type | Name | Description |
---|---|---|
int | months | |
int | days | |
long | time |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Properties
| Improve this Doc View SourceDays
Days, after time for alignment.
Declaration
public int Days { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Months
Months and years, after time for alignment.
Declaration
public int Months { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Time
Remaining time unit smaller than a day, in microseconds.
Declaration
public long Time { get; }
Property Value
Type | Description |
---|---|
long |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Methods
| Improve this Doc View SourceEquals(NpgsqlInterval)
Declaration
public bool Equals(NpgsqlInterval other)
Parameters
Type | Name | Description |
---|---|---|
NpgsqlInterval | other |
Returns
Type | Description |
---|---|
bool |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object? | obj |
Returns
Type | Description |
---|---|
bool |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Remarks
See https://www.postgresql.org/docs/current/static/datatype-geometric.html.
Do not use this type unless you have to: prefer