You are here

public function GeoTimezone::getName in Geo Time Zone 7

Same name and namespace in other branches
  1. 8 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getName()
  2. 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getName()

Get the timezone name.

Return value

string Timezone name.

File

src/GeoTimezone.php, line 77
Contains \Drupal\geotimezone\GeoTimezoneMap.

Class

GeoTimezone
Determine the timezone based on coordinates.

Namespace

Drupal\geotimezone

Code

public function getName() {
  return $this->timezone
    ->getName();
}