Get Windows TimeZoneInfo from Latitude and Longitude

懵懂的女人 提交于 2019-12-02 23:19:32

One workaround would be to get the Olson name and then use Noda Time to perform the relevant time zone calculations, as that's based on the Olson names.

We're not quite "done" with Noda Time yet, but we're getting closer and closer to a 1.0 release - and you could always limit yourself to the time zone part if you wanted, and do the rest in .NET. That would isolate you from any areas we're still sorting out, such as formatting, parsing and the best API to expose for performing arithmetic. Admittedly I'd like to hope that the rest of the API appeals to you and entices you in... or that you'd want to comment on it and tell us how you'd want to use it :)

I'm hoping to add DateTime and DateTimeOffset conversions into the codebase in the next couple of days - if you can ping the mailing list with exactly what you need, I can try to accommodate you.

Apologies that this is only a workaround rather than a full fix. I will investigate providing more Windows zone name mapping information in Noda Time - that uses CLDR as well, but with more information from the Olson database, we may be able to find equivalents easily.

Just found this online which may be a solution. Will investigate further:

http://www.timdavis.com.au/data/olson-time-zone-database-to-standard-windows-time-zone-v01/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!