dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlTimeStamp Structure / Subtraction Operator / Subtraction(PgSqlTimeStamp,DateTime) Operator
A PgSqlTimeStamp value.
A DateTime value.

In This Topic
    Subtraction(PgSqlTimeStamp,DateTime) Operator
    In This Topic
    Subtracts the specified DateTime value from a PgSqlTimeStamp value and returns a new PgSqlInterval value.
    Syntax
    'Declaration
     
    Overloads Public Operator -( _
       ByVal d1 As PgSqlTimeStamp, _
       ByVal d2 As Date _
    ) As PgSqlInterval
    public PgSqlInterval operator -( 
       PgSqlTimeStamp d1,
       DateTime d2
    )

    Parameters

    d1
    A PgSqlTimeStamp value.
    d2
    A DateTime value.

    Return Value

    A new PgSqlInterval structure.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also