Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
65% | Total: 387 | All time: 6,678 This week: 61 |
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
Files (3) |
File | Role | Description |
---|---|---|
LICENSE.md | Lic. | License |
README.md | Doc. | Documentation |
TimezoneMapper.php | 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. |
Install with Composer |
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.