Many Web sites are accessed by users from around the world, each one in at a different time zone. Sometimes it is necessary to schedule a event or otherwise tell the time when something important is going to happen at a specific time of the day at the user's location. Since the time of the day at the users location will be different according to the user time zone, it is necessary to know the time zone on which the location of the users are. This class can solve that problem using the user's geographic coordinates: latitude and longitude. These coordinates can usually be determined from the IP address of the computer the user is using to access the site, using services like IP to location. This way it is possible to determine the time where the user is located, departing from the IP address and using this class to determine the time zone from the IP address location.

Notable PHP package: PHP Time Zone Mapper

Rofl, a PHP package is considered Notable when it does something different that is worth noting.

If you have also written Notable packages, contribute them to the PHP Classes site to get your work more exposure.

If your notable package is innovative, you may also earn prizes and recognition in the PHP Innovation Award.

Now you can also win a Big elePHPant as one of the possible prizes you can win every month. Check the complete list of prizes here: List of prizes

Package

PHP Time Zone Mapper

Get time zone for a given latitude and longitude

Moderator comment

Many Web sites are accessed by users from around the world, each one in at a different time zone.

Sometimes it is necessary to schedule a event or otherwise tell the time when something important is going to happen at a specific time of the day at the user's location.

Since the time of the day at the users location will be different according to the user time zone, it is necessary to know the time zone on which the location of the users are.

This class can solve that problem using the user's geographic coordinates: latitude and longitude.

These coordinates can usually be determined from the IP address of the computer the user is using to access the site, using services like IP to location.

This way it is possible to determine the time where the user is located, departing from the IP address and using this class to determine the time zone from the IP address location.

Author

Ahmad Retha

Groups

PHP 5, Time and Date, Geography

Description

This class can get the time zone for a given latitude and longitude.

It takes the geographic coordinates of a given location and determines what is the time zone in that place.

This is a PHP version of a similar component by Dr. Tim Cooper.
Rofl you are getting this message as free service for being a user of the PHP Classes site to which you registered voluntarily using the email address rofldigger@getsend.xyz. If you wish to unsubscribe go to the unsubscribe page.