简体   繁体   中英

How to retrieve TimezoneInfo from DateTime object and GPS coordinates

如果我只知道我的DateTime和我所在位置的GPS坐标,是否可以检索(不连接互联网)正确的TimeZoneInfo?

您将需要一些第三方地理位置库来查找

A DateTime pulled from the device OS (or via system clock) won't be of much use, regardless of whether it is set local time or to GMT, if you plan to support users moving the device between timezones.

So, to use the GPS coordinates see this thread for suggestions: algorithm for getting time zone from geo coordinates .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM