protected function cron_execution_offset() {
        global $CFG;

        if (empty($CFG->updatecronoffset)) {
            set_config('updatecronoffset', rand(1, 5 * HOURSECS));
        }

        return $CFG->updatecronoffset;
    }
protected function cron_execution_offset() {
        global $CFG;

        if (empty($CFG->updatecronoffset)) {
            set_config('updatecronoffset', rand(1, 5 * HOURSECS));
        }

        return $CFG->updatecronoffset;
    }
protected function cron_execution_offset ( ) { global $ CFG ; if ( empty ( $ CFG -> updatecronoffset ) ) { set_config ( 'updatecronoffset' , rand ( 1 , 5 * HOURSECS ) ) ; } return $ CFG -> updatecronoffset ; }
Returns the cron execution offset for this site

The main {@link self::cron()} is supposed to run every night in some random time
between 01:00 and 06:00 AM (local time). The exact moment is defined by so called
execution offset, that is the amount of time after 01:00 AM. The offset value is
initially generated randomly and then used consistently at the site. This way, the
regular checks against the download.moodle.org server are spread in time.

@return int the offset number of seconds from range 1 sec to 5 hours
Returns the cron execution offset for this site