Swat/SwatTimeZoneEntry.php
private function getArea($time_zone)
    {
        $area = null;

        if ($time_zone === 'UTC') {
            $area = 'UTC';
        } elseif ($time_zone !== null) {
            $parts = explode('/', $time_zone, 2);
            $area = reset($parts);
        }

        return $area;
    }
private function getArea($time_zone)
    {
        $area = null;

        if ($time_zone === 'UTC') {
            $area = 'UTC';
        } elseif ($time_zone !== null) {
            $parts = explode('/', $time_zone, 2);
            $area = reset($parts);
        }

        return $area;
    }
private function getArea ( $ time_zone ) { $ area = null ; if ( $ time_zone === 'UTC' ) { $ area = 'UTC' ; } elseif ( $ time_zone !== null ) { $ parts = explode ( '/' , $ time_zone , 2 ) ; $ area = reset ( $ parts ) ; } return $ area ; }
Gets an area from a time zone identifier

Returns the area part of a full time zone.

@param string $time_zone the time zone identifier to get the area from.

@return string an area name.
Gets an area from a time zone identifier