public function isEqualTo(QDateTime $dttCompare)
    {
        // All comparison operations MUST have operands with matching Date Nullstates
        if ($this->blnDateNull != $dttCompare->blnDateNull) {
            return false;
        }

        // If mismatched Time nullstates, then only compare the Date portions
        if ($this->blnTimeNull != $dttCompare->blnTimeNull) {
            // Let's "Null Out" the Time
            $dttThis = new QDateTime($this);
            $dttThat = new QDateTime($dttCompare);
            $dttThis->Hour = null;
            $dttThat->Hour = null;

            // Return the Result
            return ($dttThis->Timestamp == $dttThat->Timestamp);
        } else {
            // Return the Result for the both Date and Time components
            return ($this->Timestamp == $dttCompare->Timestamp);
        }
    }
public function isEqualTo(QDateTime $dttCompare)
    {
        // All comparison operations MUST have operands with matching Date Nullstates
        if ($this->blnDateNull != $dttCompare->blnDateNull) {
            return false;
        }

        // If mismatched Time nullstates, then only compare the Date portions
        if ($this->blnTimeNull != $dttCompare->blnTimeNull) {
            // Let's "Null Out" the Time
            $dttThis = new QDateTime($this);
            $dttThat = new QDateTime($dttCompare);
            $dttThis->Hour = null;
            $dttThat->Hour = null;

            // Return the Result
            return ($dttThis->Timestamp == $dttThat->Timestamp);
        } else {
            // Return the Result for the both Date and Time components
            return ($this->Timestamp == $dttCompare->Timestamp);
        }
    }
public function isEqualTo ( QDateTime $ dttCompare ) { // All comparison operations MUST have operands with matching Date Nullstates if ( $ this -> blnDateNull != $ dttCompare -> blnDateNull ) { return false ; } // If mismatched Time nullstates, then only compare the Date portions if ( $ this -> blnTimeNull != $ dttCompare -> blnTimeNull ) { // Let's "Null Out" the Time $ dttThis = new QDateTime ( $ this ) ; $ dttThat = new QDateTime ( $ dttCompare ) ; $ dttThis -> Hour = null ; $ dttThat -> Hour = null ; // Return the Result return ( $ dttThis -> Timestamp == $ dttThat -> Timestamp ) ; } else { // Return the Result for the both Date and Time components return ( $ this -> Timestamp == $ dttCompare -> Timestamp ) ; } }
Returns true if give QDateTime is the same.

@param QDateTime $dttCompare
@return bool
Returns true if give QDateTime is the same .