src/Carbon/Traits/Date.php
public function utcOffset(int $offset = null)
    {
        if (func_num_args() < 1) {
            return $this->offsetMinutes;
        }

        return $this->setTimezone(static::safeCreateDateTimeZone($offset / static::MINUTES_PER_HOUR));
    }
public function utcOffset(int $offset = null)
    {
        if (func_num_args() < 1) {
            return $this->offsetMinutes;
        }

        return $this->setTimezone(static::safeCreateDateTimeZone($offset / static::MINUTES_PER_HOUR));
    }
public function utcOffset ( int $ offset = null ) { if ( func_num_args ( ) < 1 ) { return $ this -> offsetMinutes ; } return $ this -> setTimezone ( static :: safeCreateDateTimeZone ( $ offset / static :: MINUTES_PER_HOUR ) ) ; }
Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed.

@param int|null $offset

@return int|static|CarbonInterface
Returns the minutes offset to UTC if no arguments passed else set the timezone with given minutes shift passed .