public function contains( DateTime $datetime )
    {

        $lower = $this->lower->toUnixTimestamp();
        $upper = $this->upper->toUnixTimestamp();
        $working = $datetime->toUnixTimestamp();

        $lowerCompare = bccomp( $lower, $working );
        $upperCompare = bccomp( $upper, $working );

//        echo "\n{$lower} {$upper} {$working} {$lowerCompare} {$upperCompare}";

        // fucking hell, this was much more annoying than it should be
        if( $lowerCompare === 1 || ( $this->bounds & self::LOWER_CONTAIN_NOT and $lowerCompare === 0 ) ) {
            return false;
        }

        if( $upperCompare === -1 || ( $this->bounds & self::UPPER_CONTAIN_NOT and $upperCompare === 0 ) ) {
            return false;
        }

        return true;

    }
public function contains( DateTime $datetime )
    {

        $lower = $this->lower->toUnixTimestamp();
        $upper = $this->upper->toUnixTimestamp();
        $working = $datetime->toUnixTimestamp();

        $lowerCompare = bccomp( $lower, $working );
        $upperCompare = bccomp( $upper, $working );

//        echo "\n{$lower} {$upper} {$working} {$lowerCompare} {$upperCompare}";

        // fucking hell, this was much more annoying than it should be
        if( $lowerCompare === 1 || ( $this->bounds & self::LOWER_CONTAIN_NOT and $lowerCompare === 0 ) ) {
            return false;
        }

        if( $upperCompare === -1 || ( $this->bounds & self::UPPER_CONTAIN_NOT and $upperCompare === 0 ) ) {
            return false;
        }

        return true;

    }
public function contains ( DateTime $ datetime ) { $ lower = $ this -> lower -> toUnixTimestamp ( ) ; $ upper = $ this -> upper -> toUnixTimestamp ( ) ; $ working = $ datetime -> toUnixTimestamp ( ) ; $ lowerCompare = bccomp ( $ lower , $ working ) ; $ upperCompare = bccomp ( $ upper , $ working ) ; //        echo "\n{$lower} {$upper} {$working} {$lowerCompare} {$upperCompare}"; // fucking hell, this was much more annoying than it should be if ( $ lowerCompare === 1 || ( $ this -> bounds & self :: LOWER_CONTAIN_NOT and $ lowerCompare === 0 ) ) { return false ; } if ( $ upperCompare === - 1 || ( $ this -> bounds & self :: UPPER_CONTAIN_NOT and $ upperCompare === 0 ) ) { return false ; } return true ; }
Does this interval contain our time
@return Bond\Entity\T
Does this interval contain our time