Npgsql Api Docs |

# NpgsqlInterval Constructor

Initializes a new NpgsqlInterval to the specified number of ticks.

#### Overload List

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

> public NpgsqlInterval(int,int,int,int);

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

> public NpgsqlInterval(int,int,int,int,int);

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

> public NpgsqlInterval(int,int,int,int,int,int);

Initializes a new NpgsqlInterval to the specified number of years, months, days, hours, minutes, seconds & milliseconds. Years are calculated exactly equivalent to 12 months.

> public NpgsqlInterval(int,int,int,int,int,int,int);

Initializes a new NpgsqlInterval to the specified number of months, days & ticks.

> public NpgsqlInterval(int,int,long);

Initializes a new NpgsqlInterval to the specified number of ticks.

> public NpgsqlInterval(long);

Initializes a new NpgsqlInterval to hold the same time as a TimeSpan

> public NpgsqlInterval(TimeSpan);

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace