世界上的任何时区

//世界上的任何时区
var timeZones = TimeZoneInfo.GetSystemTimeZones();

foreach (var item in timeZones)
{
    Console.WriteLine("{0} - {1}", item.Id, item.StandardName);
}

DateTime chinaDT = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.Now, "China Standard Time"); //中国标准时间
Console.WriteLine(chinaDT.ToString());

var local = TimeZoneInfo.Local;
Console.WriteLine(local.Id);

 

Dateline Standard Time - 国际日期变更线标准时间
UTC-11 - UTC-11
Samoa Standard Time - 萨摩亚群岛标准时间
Hawaiian Standard Time - 夏威夷标准时间
Alaskan Standard Time - 阿拉斯加标准时间
Pacific Standard Time (Mexico) - 太平洋标准时间(墨西哥)
Pacific Standard Time - 太平洋标准时间
US Mountain Standard Time - 美国山地标准时间
Mountain Standard Time (Mexico) - 山地标准时间(墨西哥)
Mountain Standard Time - 山地标准时间
Central America Standard Time - 中美洲标准时间
Central Standard Time - 中部标准时间
Central Standard Time (Mexico) - 中部标准时间(墨西哥)
Canada Central Standard Time - 加拿大中部标准时间
Eastern Standard Time - 东部标准时间
US Eastern Standard Time - 美国东部标准时间
SA Pacific Standard Time - 南美洲太平洋标准时间
Venezuela Standard Time - 委内瑞拉标准时间
SA Western Standard Time - 南美洲西部标准时间
Paraguay Standard Time - 巴拉圭标准时间
Pacific SA Standard Time - 太平洋南美洲标准时间
Atlantic Standard Time - 大西洋标准时间
Central Brazilian Standard Time - 巴西中部标准时间
Newfoundland Standard Time - 纽芬兰标准时间
SA Eastern Standard Time - 南美洲东部标准时间
E. South America Standard Time - 东部南美洲标准时间
Argentina Standard Time - 阿根廷标准时间
Greenland Standard Time - 格陵兰标准时间
Montevideo Standard Time - 蒙得维的亚标准时间
Mid-Atlantic Standard Time - 中大西洋标准时间
UTC-02 - UTC-02
Azores Standard Time - 亚速尔群岛标准时间
Cape Verde Standard Time - 佛得角群岛标准时间
UTC - 协调世界时
Morocco Standard Time - 摩洛哥标准时间
Greenwich Standard Time - 格林威治标准时间
GMT Standard Time - GMT 标准时间
W. Central Africa Standard Time - 中非西部标准时间
Romance Standard Time - 罗马标准时间
Namibia Standard Time - 纳米比亚标准时间
Central European Standard Time - 中欧的标准时间
Central Europe Standard Time - 中欧标准时间
W. Europe Standard Time - 西欧标准时间
South Africa Standard Time - 南非标准时间
Syria Standard Time - 叙利亚标准时间
Jordan Standard Time - 约旦标准时间
Egypt Standard Time - 埃及标准时间
E. Europe Standard Time - 东欧标准时间
Israel Standard Time - 耶路撒冷标准时间
Middle East Standard Time - 中东标准时间
FLE Standard Time - FLE 标准时间
GTB Standard Time - GTB 标准时间
E. Africa Standard Time - 东非标准时间
Arabic Standard Time - 阿拉伯 (Arabic) 标准时间
Arab Standard Time - 阿拉伯 (Arab) 标准时间
Russian Standard Time - 俄罗斯标准时间
Iran Standard Time - 伊朗标准时间
Caucasus Standard Time - 高加索标准时间
Azerbaijan Standard Time - 阿塞拜疆标准时间
Georgian Standard Time - 格鲁吉亚标准时间
Mauritius Standard Time - 毛里求斯标准时间
Arabian Standard Time - 阿拉伯半岛标准时间
Afghanistan Standard Time - 阿富汗标准时间
Pakistan Standard Time - 巴基斯坦标准时间
Ekaterinburg Standard Time - 叶卡捷琳堡标准时间
West Asia Standard Time - 西亚标准时间
Sri Lanka Standard Time - 斯里兰卡标准时间
India Standard Time - 印度标准时间
Nepal Standard Time - 尼泊尔标准时间
N. Central Asia Standard Time - 中亚北部标准时间
Bangladesh Standard Time - 孟加拉国标准时间
Central Asia Standard Time - 中亚标准时间
Myanmar Standard Time - 缅甸标准时间
North Asia Standard Time - 北亚标准时间
SE Asia Standard Time - 东南亚标准时间
Ulaanbaatar Standard Time - 乌兰巴托标准时间
North Asia East Standard Time - 北亚东部标准时间
China Standard Time - 中国标准时间
Taipei Standard Time - 台北标准时间
Singapore Standard Time - 马来西亚半岛标准时间
W. Australia Standard Time - 澳大利亚西部标准时间
Tokyo Standard Time - 东京标准时间
Yakutsk Standard Time - 雅库茨克标准时间
Korea Standard Time - 韩国标准时间
AUS Central Standard Time - 澳大利亚中部标准时间
Cen. Australia Standard Time - 中部澳大利亚标准时间
West Pacific Standard Time - 太平洋西部标准时间
AUS Eastern Standard Time - 澳大利亚东部标准时间
E. Australia Standard Time - 东部澳大利亚标准时间
Vladivostok Standard Time - 符拉迪沃斯托克(海参崴)标准时间
Tasmania Standard Time - 塔斯马尼亚岛标准时间
Central Pacific Standard Time - 太平洋中部标准时间
Magadan Standard Time - 马加丹标准时间
UTC+12 - UTC+12
New Zealand Standard Time - 新西兰标准时间
Kamchatka Standard Time - 堪察加标准时间
Fiji Standard Time - 斐济标准时间
Tonga Standard Time - 汤加标准时间

 

 

 变量信息:

timeZones
Count = 98
    [0]: {(UTC-12:00)国际日期变更线西}
    [1]: {(UTC-11:00)协调世界时-11}
    [2]: {(UTC-11:00)萨摩亚群岛}
    [3]: {(UTC-10:00)夏威夷}
    [4]: {(UTC-09:00)阿拉斯加}
    [5]: {(UTC-08:00)下加利福尼亚州}
    [6]: {(UTC-08:00)太平洋时间(美国和加拿大)}
    [7]: {(UTC-07:00)亚利桑那}
    [8]: {(UTC-07:00)奇瓦瓦,拉巴斯,马萨特兰}
    [9]: {(UTC-07:00)山地时间(美国和加拿大)}
    [10]: {(UTC-06:00)中美洲}
    [11]: {(UTC-06:00)中部时间(美国和加拿大)}
    [12]: {(UTC-06:00)瓜达拉哈拉,墨西哥城,蒙特雷}
    [13]: {(UTC-06:00)萨斯喀彻温}
    [14]: {(UTC-05:00)东部时间(美国和加拿大)}
    [15]: {(UTC-05:00)印地安那州(东部)}
    [16]: {(UTC-05:00)波哥大,利马,基多}
    [17]: {(UTC-04:30)加拉加斯}
    [18]: {(UTC-04:00)乔治敦,拉巴斯,马瑙斯,圣胡安}
    [19]: {(UTC-04:00)亚松森}
    [20]: {(UTC-04:00)圣地亚哥}
    [21]: {(UTC-04:00)大西洋时间(加拿大)}
    [22]: {(UTC-04:00)库亚巴}
    [23]: {(UTC-03:30)纽芬兰}
    [24]: {(UTC-03:00)卡宴,福塔雷萨}
    [25]: {(UTC-03:00)巴西利亚}
    [26]: {(UTC-03:00)布宜诺斯艾利斯}
    [27]: {(UTC-03:00)格陵兰}
    [28]: {(UTC-03:00)蒙得维的亚}
    [29]: {(UTC-02:00)中大西洋}
    [30]: {(UTC-02:00)协调世界时-02}
    [31]: {(UTC-01:00)亚速尔群岛}
    [32]: {(UTC-01:00)佛得角群岛}
    [33]: {(UTC)协调世界时}
    [34]: {(UTC)卡萨布兰卡}
    [35]: {(UTC)蒙罗维亚,雷克雅未克}
    [36]: {(UTC)都柏林,爱丁堡,里斯本,伦敦}
    [37]: {(UTC+01:00)中非西部}
    [38]: {(UTC+01:00)布鲁塞尔,哥本哈根,马德里,巴黎}
    [39]: {(UTC+01:00)温得和克}
    [40]: {(UTC+01:00)萨拉热窝,斯科普里,华沙,萨格勒布}
    [41]: {(UTC+01:00)贝尔格莱德,布拉迪斯拉发,布达佩斯,卢布尔雅那,布拉格}
    [42]: {(UTC+01:00)阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳}
    [43]: {(UTC+02:00)哈拉雷,比勒陀利亚}
    [44]: {(UTC+02:00)大马士革}
    [45]: {(UTC+02:00)安曼}
    [46]: {(UTC+02:00)开罗}
    [47]: {(UTC+02:00)明斯克}
    [48]: {(UTC+02:00)耶路撒冷}
    [49]: {(UTC+02:00)贝鲁特}
    [50]: {(UTC+02:00)赫尔辛基,基辅,里加,索非亚,塔林,维尔纽斯}
    [51]: {(UTC+02:00)雅典,布加勒斯特,伊斯坦布尔}
    [52]: {(UTC+03:00)内罗毕}
    [53]: {(UTC+03:00)巴格达}
    [54]: {(UTC+03:00)科威特,利雅得}
    [55]: {(UTC+03:00)莫斯科,圣彼得堡,伏尔加格勒}
    [56]: {(UTC+03:30)德黑兰}
    [57]: {(UTC+04:00)埃里温}
    [58]: {(UTC+04:00)巴库}
    [59]: {(UTC+04:00)第比利斯}
    [60]: {(UTC+04:00)路易港}
    [61]: {(UTC+04:00)阿布扎比,马斯喀特}
    [62]: {(UTC+04:30)喀布尔}
    [63]: {(UTC+05:00)伊斯兰堡,卡拉奇}
    [64]: {(UTC+05:00)叶卡捷琳堡}
    [65]: {(UTC+05:00)塔什干}
    [66]: {(UTC+05:30)斯里加亚渥登普拉}
    [67]: {(UTC+05:30)钦奈,加尔各答,孟买,新德里}
    [68]: {(UTC+05:45)加德满都}
    [69]: {(UTC+06:00)新西伯利亚}
    [70]: {(UTC+06:00)达卡}
    [71]: {(UTC+06:00)阿斯塔纳}
    [72]: {(UTC+06:30)仰光}
    [73]: {(UTC+07:00)克拉斯诺亚尔斯克}
    [74]: {(UTC+07:00)曼谷,河内,雅加达}
    [75]: {(UTC+08:00)乌兰巴托}
    [76]: {(UTC+08:00)伊尔库茨克}
    [77]: {(UTC+08:00)北京,重庆,香港特别行政区,乌鲁木齐}
    [78]: {(UTC+08:00)台北}
    [79]: {(UTC+08:00)吉隆坡,新加坡}
    [80]: {(UTC+08:00)珀斯}
    [81]: {(UTC+09:00)大阪,札幌,东京}
    [82]: {(UTC+09:00)雅库茨克}
    [83]: {(UTC+09:00)首尔}
    [84]: {(UTC+09:30)达尔文}
    [85]: {(UTC+09:30)阿德莱德}
    [86]: {(UTC+10:00)关岛,莫尔兹比港}
    [87]: {(UTC+10:00)堪培拉,墨尔本,悉尼}
    [88]: {(UTC+10:00)布里斯班}
    [89]: {(UTC+10:00)符拉迪沃斯托克}
    [90]: {(UTC+10:00)霍巴特}
    [91]: {(UTC+11:00)所罗门群岛,新喀里多尼亚}
    [92]: {(UTC+11:00)马加丹}
    [93]: {(UTC+12:00)协调世界时+12}
    [94]: {(UTC+12:00)奥克兰,惠灵顿}
    [95]: {(UTC+12:00)彼得罗巴甫洛夫斯克-堪察加 - 旧用}
    [96]: {(UTC+12:00)斐济}
    [97]: {(UTC+13:00)努库阿洛法}
chinaDT
{2017/4/3 16:50:49}
    Date: {2017/4/3 0:00:00}
    Day: 3
    DayOfWeek: Monday
    DayOfYear: 93
    Hour: 16
    Kind: Unspecified
    Millisecond: 6
    Minute: 50
    Month: 4
    Second: 49
    Ticks: 636268350490069798
    TimeOfDay: {16:50:49.0069798}
    Year: 2017


chinaDT.ToString()
"2017/4/3 16:50:49"


local
{(UTC+08:00)北京,重庆,香港特别行政区,乌鲁木齐}
    BaseUtcOffset: {08:00:00}
    DaylightName: "中国夏令时"
    DisplayName: "(UTC+08:00)北京,重庆,香港特别行政区,乌鲁木齐"
    Id: "China Standard Time"
    StandardName: "中国标准时间"
    SupportsDaylightSavingTime: false

 

posted @ 2017-04-03 16:55  茗::流  阅读(751)  评论(0)    收藏  举报
如有雷同,纯属参考。如有侵犯你的版权,请联系我。