Skip to content

A PHP script that returns the timezone given the latitude and longitude of a location

License

Notifications You must be signed in to change notification settings

webmasterar/TimezoneMapperPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

TimezoneMapperPHP

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).

Usage

<?php
include 'TimezoneMapper.php';
$london = ['lat' => 51.504380, 'lng' => -0.127727];
echo TimezoneMapper::latLngToTimezoneString($london['lat'], $london['lng']);
//outputs: Europe/London

About

A PHP script that returns the timezone given the latitude and longitude of a location

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages