我们如何通过C#中的contry名称找到TimeZone。

编程入门 行业动态 更新时间:2024-10-25 13:22:20
本文介绍了我们如何通过C#中的contry名称找到TimeZone。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们如何在C#中通过contry名称找到TimeZone。

How can we find TimeZone by contry name in C#.

推荐答案

Google是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...... 快速搜索 使用您的主题作为搜索词 提供了超过50,000个结果: Google [ ^ ] 将来,请尝试在自己最基础的研究,而不是浪费你的时间或我们的时间。 Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here... A very quick search using your subject as the search term gave over 50,000 results: Google[^] In future, please try to do at least basic research yourself, and not waste your time or ours.

var zones = from tz in TimeZoneInfo.GetSystemTimeZones()其中tz.Id =xxx选择tz; 将xxx替换为您想要的时区......:) var zones = from tz in TimeZoneInfo.GetSystemTimeZones() where tz.Id = "xxx" select tz; Replace "xxx" with your desired timezone... :)

我认为这将有助于您: 按国家/地区获取时区和地区 [ ^ ]

更多推荐

我们如何通过C#中的contry名称找到TimeZone。

本文发布于:2023-11-09 23:06:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573685.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:名称   contry   TimeZone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!