Hi,
I need to find out the local time of a place whose address is given to me.
For example : I am having the address like Columbus, OHIO, USA. I need to find the local time at Columbus. This I need in PHP.
Kindly help me to get this thing done. Is there any Function that PHP offers directly from where we can calculate the time from the address or we need to write something customized to get it done.
Any help in this regard is highly appreciated
Thank you
Retrieve Local Time From the Address - PHP HELP
Moderator: General Moderators
-
everurssantosh
- Forum Newbie
- Posts: 13
- Joined: Wed Jun 25, 2008 10:26 am
-
WebbieDave
- Forum Contributor
- Posts: 213
- Joined: Sun Jul 15, 2007 7:07 am
Re: Retrieve Local Time From the Address - PHP HELP
PHP doesn't have anything with that level of granularity. You can check out supported timezones at:
http://us.php.net/timezones
There's also a PECL extenstion (timezonedb) if your built in PHP timezone db is too old.
You'd need to gain access to a pretty large database that contains every city and its timezone (or not so large if you just need North America). I'm not sure how fine the Olson database gets but I'm positive it doesn't contain all cities.
http://us.php.net/timezones
There's also a PECL extenstion (timezonedb) if your built in PHP timezone db is too old.
You'd need to gain access to a pretty large database that contains every city and its timezone (or not so large if you just need North America). I'm not sure how fine the Olson database gets but I'm positive it doesn't contain all cities.
-
everurssantosh
- Forum Newbie
- Posts: 13
- Joined: Wed Jun 25, 2008 10:26 am
Re: Retrieve Local Time From the Address - PHP HELP
Thank you ...