You are here

public function GeoTimezone::getOffset in Geo Time Zone 8

Same name and namespace in other branches
  1. 8.3 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()
  2. 8.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()
  3. 6.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()
  4. 6 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()
  5. 7.2 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()
  6. 7 src/GeoTimezone.php \Drupal\geotimezone\GeoTimezone::getOffset()

Get the timezone offset.

Return value

string Timezone offset.

File

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

Class

GeoTimezone
Determine the timezone based on coordinates.

Namespace

Drupal\geotimezone

Code

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