dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlInterval Structure / Years Property

On this page
    Years Property
    On this page
    Gets the years component of the TotalMonths value.
    Syntax
    'Declaration
     
    Public ReadOnly Property Years As Integer
    public int Years {get;}

    Property Value

    The years component of the TotalMonths value.
    Remarks
    The real number of months stored on server is contained in TotalMonths property. Its constituent parts are Years and Months. When a value is assigned to PgSqlInterval object, it is automatically parsed and appropriate properties are filled with right values.
    See Also