src/Carbon/CarbonTimeZone.php
public function toRegionTimeZone(DateTimeInterface $date = null)
    {
        $tz = $this->toRegionName($date);

        if ($tz === false) {
            if (Carbon::isStrictModeEnabled()) {
                throw new InvalidArgumentException('Unknown timezone for offset '.$this->getOffset($date ?: Carbon::now($this)).' seconds.');
            }

            return false;
        }

        return new static($tz);
    }
public function toRegionTimeZone(DateTimeInterface $date = null)
    {
        $tz = $this->toRegionName($date);

        if ($tz === false) {
            if (Carbon::isStrictModeEnabled()) {
                throw new InvalidArgumentException('Unknown timezone for offset '.$this->getOffset($date ?: Carbon::now($this)).' seconds.');
            }

            return false;
        }

        return new static($tz);
    }
public function toRegionTimeZone ( DateTimeInterface $ date = null ) { $ tz = $ this -> toRegionName ( $ date ) ; if ( $ tz === false ) { if ( Carbon :: isStrictModeEnabled ( ) ) { throw new InvalidArgumentException ( 'Unknown timezone for offset ' . $ this -> getOffset ( $ date ? : Carbon :: now ( $ this ) ) . ' seconds.' ) ; } return false ; } return new static ( $ tz ) ; }
Returns a new CarbonTimeZone object using the region string instead of offset string.

@param DateTimeInterface|null $date

@return CarbonTimeZone|false
Returns a new CarbonTimeZone object using the region string instead of offset string .