The properties of the NpgsqlInterval structure are listed below. For a complete list of NpgsqlInterval structure members, see the NpgsqlInterval Members topic.
![]() | Gets the number of days held in the instance. |
![]() | Gets the number of whole hours held in the instance. |
![]() | Gets the number of whole microseconds held in the instance. |
![]() | Gets the number of whole milliseconds held in the instance. |
![]() | Gets the number of whole minutes held in the instance. |
![]() | Gets the number of months held in the instance. |
![]() | Gets the number of whole seconds held in the instance. |
![]() | The total number of ticks(100ns units) contained. This is the resolution of the NpgsqlInterval type. This ignores the number of days and months held. If you want them included use UnjustifyInterval first.
As such, if the 100-nanosecond resolution is significant to an application, a PostgreSQL interval will not suffice for those purposes. In more frequent cases though, the resolution of the interval suffices. NpgsqlInterval will always suffice to handle the resolution of any interval value, and upon writing to the database, will be rounded to the resolution used. |
![]() | Returns a TimeSpan representing the time component of the instance. |
![]() | The total number of days in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of hours in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of microseconds in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of milliseconds in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of minutes in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of months in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of seconds in the instance, assuming 24 hours in each day and 30 days in a month. |
![]() | The total number of ticks (100ns units) in the instance, assuming 24 hours in each day and 30 days in a month. |
NpgsqlInterval Class | NpgsqlTypes Namespace | Ticks | JustifyDays | JustifyMonths | Canonicalize