You are here

interface TimezoneInterface in Geo Time Zone 8.3

Same name and namespace in other branches
  1. 8.2 src/TimezoneInterface.php \Drupal\geotimezone\TimezoneInterface
  2. 6.2 src/TimezoneInterface.php \Drupal\geotimezone\TimezoneInterface
  3. 7.2 src/TimezoneInterface.php \Drupal\geotimezone\TimezoneInterface

Provides an interface for different means to get time zone.

@package Drupal\geotimezone

Hierarchy

Expanded class hierarchy of TimezoneInterface

All classes that implement TimezoneInterface

File

src/TimezoneInterface.php, line 15
Contains \Drupal\geotimezone\TimezoneInterface.

Namespace

Drupal\geotimezone
View source
interface TimezoneInterface {

  /**
   * Get the time zone identifier.
   *
   * @return string
   *   Time zone identifier. NULL if not found.
   */
  public function getIdentifier();

  /**
   * Get the time zone offset.
   *
   * @return string
   *   Time zone offset. NULL if not found.
   */
  public function getOffset();

}

Members

Namesort descending Modifiers Type Description Overrides
TimezoneInterface::getIdentifier public function Get the time zone identifier. 4
TimezoneInterface::getOffset public function Get the time zone offset. 4