roundcubemail/program/lib/Roundcube/rcube_db.php
public function now($interval = 0)
    {
        if ($interval) {
            $add = ' ' . ($interval > 0 ? '+' : '-') . ' INTERVAL ';
            $add .= $interval > 0 ? intval($interval) : intval($interval) * -1;
            $add .= ' SECOND';
        }

        return "now()" . $add;
    }
public function now($interval = 0)
    {
        if ($interval) {
            $add = ' ' . ($interval > 0 ? '+' : '-') . ' INTERVAL ';
            $add .= $interval > 0 ? intval($interval) : intval($interval) * -1;
            $add .= ' SECOND';
        }

        return "now()" . $add;
    }
public function now ( $ interval = 0 ) { if ( $ interval ) { $ add = ' ' . ( $ interval > 0 ? '+' : '-' ) . ' INTERVAL ' ; $ add .= $ interval > 0 ? intval ( $ interval ) : intval ( $ interval ) * - 1 ; $ add .= ' SECOND' ; } return "now()" . $ add ; }
Return SQL function for current time and date

@param int $interval Optional interval (in seconds) to add/subtract

@return string SQL function to use in query
Return SQL function for current time and date