There are coordinates:
Address:Ufa, Republic of Bashkortostan, Russia Latitude:54.8098660 Longitude:56.0939110
How can I calculate the time zone? Is there a formula?
//specialist. calculation services are not needed.
There are coordinates:
Address:Ufa, Republic of Bashkortostan, Russia Latitude:54.8098660 Longitude:56.0939110
How can I calculate the time zone? Is there a formula?
//specialist. calculation services are not needed.
There is no logic in the distribution of zones, respectively, there is no formula either. Use the time zone database: http://www.iana.org/time-zones
Since changes occur from time to time (for example, summer time can be entered and canceled), you will have to update the base regularly.
PS: here is an example of the code that works with the table: http://edoceo.com/exemplar/php-timezone.
PPS: To display the coordinates in the name of the country, advise the database: http://download.geonames.org/export/dump/
Google knows everything, just ask him the right questions: http://ws.geonames.org/timezone?lat=54.8098660&lng=56.0939110
http://askgeo.com/ - ready-made libraries for Java and .NET
Source: https://ru.stackoverflow.com/questions/192631/
All Articles
-ltelepathy
. - VladD