You are here

public function GeoTimezone::getOffset in Geo Time Zone 8.3

Same name and namespace in other branches
  1. 8 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 time zone offset.

Return value

string Time zone offset.

Overrides TimezoneInterface::getOffset

File

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

Class

GeoTimezone
Determine the time zone based on coordinates.

Namespace

Drupal\geotimezone

Code

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