Npgsql Api Docs |

# NpgsqlInterval Constructor (Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new NpgsqlInterval to the specified number of years, months, days, hours, minutes, seconds & milliseconds.

Years are calculated exactly equivalent to 12 months.

[Visual Basic]
Overloads Public Sub New( _
ByVal years As Integer, _
ByVal months As Integer, _
ByVal days As Integer, _
ByVal hours As Integer, _
ByVal minutes As Integer, _
ByVal seconds As Integer, _
ByVal milliseconds As Integer _
)
[C#]
public NpgsqlInterval(
int years,
int months,
int days,
int hours,
int minutes,
int seconds,
int milliseconds
);

#### Parameters

years
  Number of years.
months
  Number of months.
days
  Number of days.
hours
  Number of hours.
minutes
  Number of minutes.
seconds
  Number of seconds.
milliseconds
  Number of milliseconds.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace | NpgsqlInterval Constructor Overload List