Latitude & longitude from timezone

hi,
i have world counries timezone.Is it possible to get latitude and longitude from timezone? could any one help?

i found one solution
<?php
$tz = new DateTimeZone(“Europe/Prague”);
print_r($tz->getLocation());
?>

But i got an error while running this file.
Fatal error: Call to undefined method DateTimeZone::getLocation() in
whether i have to make any settings on php.ini file…
Please give a solution.

Hello Ravindran,

I have found the following link,may that could help you

http://vancouverwebconsultants.com/getting-time-zone-from-latitude-longitude/

What version of PHP do you run? You’ll need PHP 5.3.0 or greater.
See: http://www.php.net/manual/en/datetimezone.getlocation.php

am using php 5.2.5 version. thats what this error arise.

it will work only on php 5.3.0 version or greater than this.

no

The reason, is that the latitude for a timezone runs all the way from the north pole down to the south pole.

The longitude is within a banded range, but it varies widely depending on the geopolitical nature of the land.

See http://www.csd.uwo.ca/~jamie/.Refs/timezone-map.html for a timezone map that demonstrates this.

No, not even that is consistent. The US Eastern Time Zone only affects the southern part of Ontario and Quebec, go far enough north and the zone switches over to central. The area doesn’t go all the way north. Some countries are on their own time zones just to be special (incidentally some of those local time zones are a half hour off the majority of the world’s time zones). Most of the antarctic stations use UTC.