Npgsql Api Docs |

# NpgsqlInterval.FromHours Method

Creates an NpgsqlInterval from a number of hours.

[Visual Basic]
Public Shared Function FromHours( _
ByVal hours As Double _
) As NpgsqlInterval
[C#]
public static NpgsqlInterval FromHours(
double hours
);

#### Parameters

hours

#### Return Value

A Canonicalized NpgsqlInterval with the given number of hours.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace