timezoneByCoordinates() public static method

Gets the timezone that is closest to the given coordinates
Deprecation: Would need Geo plugin to work
public static timezoneByCoordinates ( float $lat, float $lng ) : DateTimeZone
$lat float
$lng float
return DateTimeZone Timezone object
Beispiel #1
0
 /**
  * TimeTest::testTimezoneByCoordinates()
  *
  * @return void
  */
 public function testTimezoneByCoordinates()
 {
     $this->skipIf(true);
     $result = $this->Time->timezoneByCoordinates(48, 11);
     $this->assertEquals('Europe/Vaduz', $result);
 }