Doctrine\DBAL\Platforms\MySqlPlatform::getDateDiffExpression PHP Method

getDateDiffExpression() public method

{@inheritDoc}
public getDateDiffExpression ( $date1, $date2 )
    public function getDateDiffExpression($date1, $date2)
    {
        return 'DATEDIFF(' . $date1 . ', ' . $date2 . ')';
    }
MySqlPlatform