You are here

public function Timezone::getOffset in Geo Time Zone 8.3

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

Get the time zone offset.

Return value

string Time zone offset. NULL if not found.

Overrides TimezoneInterface::getOffset

File

src/Timezone.php, line 62
Contains \Drupal\geotimezone\Timezone.

Class

Timezone
Holds the list of time zone identifiers and UTC/GMT offsets.

Namespace

Drupal\geotimezone

Code

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