Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() ![]() | Total: 389 This week: 1 | All time: 6,664 This week: 42![]() |
Version | License | PHP version | Categories | |||
time-zone-mapper 1.0.1 | MIT/X Consortium ... | 5 | PHP 5, Time and Date, Geography |
Collaborate with this project | Author | ||||||||||||||||
TimezoneMapperPHP - github.com Description This class can get the time zone for a given latitude and longitude. Innovation Award
|
|
Given a latitude and a longitude of a location, this program will return the timezone string.
This is the PHP version of the end product of: https://github.com/drtimcooper/LatLongToTimezone
It is released under the same license (MIT).
<?php
include 'TimezoneMapper.php';
$london = ['lat' => 51.504380, 'lng' => -0.127727];
echo TimezoneMapper::latLngToTimezoneString($london['lat'], $london['lng']);
//outputs: Europe/London
![]() |
File | Role | Description |
---|---|---|
![]() ![]() |
Lic. | License |
![]() ![]() |
Doc. | Documentation |
![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.