adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / DateTimeHandling Class / CompareTimeSpan Method


In This Topic
    CompareTimeSpan Method
    In This Topic
    Compares two nullable TimeSpan values
    Syntax
    'Declaration
     
    
    Public Shared Function CompareTimeSpan( _
       ByVal x As Nullable(Of TimeSpan), _
       ByVal y As Nullable(Of TimeSpan) _
    ) As Integer
    public static int CompareTimeSpan( 
       Nullable<TimeSpan> x,
       Nullable<TimeSpan> y
    )
    public:
    static int CompareTimeSpan( 
       Nullable<TimeSpan> x,
       Nullable<TimeSpan> y
    ) 

    Parameters

    x
    y

    Return Value

    The comparison result
    Remarks
    This method treats a a null reference (Nothing in Visual Basic) as less than a non-a null reference (Nothing in Visual Basic) value. If both x and y have values, it returns the result of System.DateTime.Compare(System.DateTime,System.DateTime)(x, y).
    See Also