You are here

public function CountryTimezone::getOffset in Geo Time Zone 8.3

Same name and namespace in other branches
  1. 8.2 src/CountryTimezone.php \Drupal\geotimezone\CountryTimezone::getOffset()
  2. 6.2 src/CountryTimezone.php \Drupal\geotimezone\CountryTimezone::getOffset()
  3. 7.2 src/CountryTimezone.php \Drupal\geotimezone\CountryTimezone::getOffset()

Get the time zone offset.

Return value

string Time zone offset. NULL if not found.

Overrides TimezoneInterface::getOffset

File

src/CountryTimezone.php, line 74
Contains \Drupal\geotimezone\CountryTimezone.

Class

CountryTimezone
Holds the list of time zone based on country code.

Namespace

Drupal\geotimezone

Code

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