Re: [PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Stuart Dallas
On 21 Nov 2009, at 17:51, Phpster wrote:
> This is a simple math problem. Create am array with a start and end longitude 
> for that timezone and run a comapre from your lay/long co-ords to see where 
> it falls.

It's not that simple because timezones boundaries don't run in straight lines 
from pole to pole.

I Googled and got this among several others...

http://stackoverflow.com/questions/41504/timezone-lookup-from-latitude-longitude

-Stuart

-- 
http://3ft9.com/


> On Nov 21, 2009, at 12:25 PM, Haig Davis  wrote:
> 
>> Good Morning all,
>> 
>> Having a look at the time zone functions in PHP you can enter a time zone
>> city and get it's lat long. Does anybody know how you can run the function
>> in reverse (or know of a similar function) i.e. get the time zone city from
>> the geographic coordinates. Google maps was a thought but the functions are
>> only for use in google maps which rules out my use for them.
>> 
>> Have a great weekend.
>> 
>> Cheers
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Phpster
This is a simple math problem. Create am array with a start and end  
longitude for that timezone and run a comapre from your lay/long co- 
ords to see where it falls.


Bastien

Sent from my iPod

On Nov 21, 2009, at 12:25 PM, Haig Davis  wrote:


Good Morning all,

Having a look at the time zone functions in PHP you can enter a time  
zone
city and get it's lat long. Does anybody know how you can run the  
function
in reverse (or know of a similar function) i.e. get the time zone  
city from
the geographic coordinates. Google maps was a thought but the  
functions are

only for use in google maps which rules out my use for them.

Have a great weekend.

Cheers


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php