Timezone from geolocation

后端 未结 2 580
一整个雨季
一整个雨季 2020-12-11 07:56

I have a geolocation pair latitude/longitude, is there any way/tool to get the corresponding time zone?

2条回答
  •  伪装坚强ぢ
    2020-12-11 08:34

    A website called EarthTools has a web service for that.

    http://www.earthtools.org/webservices.htm#timezone

    You can pass in latitude and longitude like so:

    h ttp://www.earthtools.org/timezone/40.71417/-74.00639

    And it spits out the time zone and a bunch of other info:

    
    
        1.1
        
            40.71417
            -74.00639
        
        -5
        R
        4 Dec 2005 12:06:56
        2005-12-04 12:06:56 -0500
        2005-12-04 17:06:56
        False
    
    

提交回复
热议问题