c# .net获取各国时间

 1             DateTime dt = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now, TimeZoneInfo.Local);
 2             DateTime dt1 = TimeZoneInfo.ConvertTimeFromUtc(dt, TimeZoneInfo.FindSystemTimeZoneById("New Zealand Standard Time"));//参数对应国家或者时区 下面有相关国家和时区对应参数
 3             MessageBox.Show("本地当前时间:" + DateTime.Now.ToString()+"\r\n"+ "UTC :" + dt.ToString() + "\r\n" + "新西兰当前:" + dt1.ToString());
 4 
 5 /*
 6 Dateline Standard Time,(GMT-12:00)日界线西,国际日期变更线标准时间
 7 Samoa Standard Time,(GMT-11:00) 中途岛,萨摩亚群岛,萨摩亚群岛标准时间
 8 Hawaiian Standard Time,(GMT-10:00) 夏威夷,夏威夷标准时间
 9 Alaskan Standard Time,(GMT-09:00) 阿拉斯加,阿拉斯加标准时间
10 Pacific Standard Time,(GMT-08:00) 太平洋时间(美国和加拿大);蒂华纳,太平洋标准时间
11 US Mountain Standard Time,(GMT-07:00) 亚利桑那,美国山地标准时间
12 Mountain Standard Time,(GMT-07:00) 山地时间(美国和加拿大),山地标准时间
13 Mexico Standard Time 2,(GMT-07:00)奇瓦瓦,拉巴斯,马扎特兰,墨西哥标准时间 2
14 Central America Standard Time,(GMT-06:00) 中美洲,中美洲标准时间
15 Central Standard Time,(GMT-06:00) 中部时间(美国和加拿大),中部标准时间
16 Canada Central Standard Time,(GMT-06:00) 萨斯喀彻温,加拿大中部标准时间
17 Mexico Standard Time,(GMT-06:00)瓜达拉哈拉,墨西哥城,蒙特雷,墨西哥标准时间
18 Eastern Standard Time,(GMT-05:00) 东部时间(美国和加拿大),东部标准时间
19 US Eastern Standard Time,(GMT-05:00) 印地安那州(东部),美国东部标准时间
20 SA Pacific Standard Time,(GMT-05:00) 波哥大,利马,基多,南美州太平洋标准时间
21 SA Western Standard Time,(GMT-04:00) 加拉加斯,拉巴斯,南美州西部标准时间
22 Pacific SA Standard Time,(GMT-04:00) 圣地亚哥,南美州太平洋标准时间
23 Atlantic Standard Time,(GMT-04:00) 大西洋时间(加拿大),大西洋标准时间
24 Newfoundland Standard Time,(GMT-03:30) 纽芬兰,纽芬兰标准时间
25 E. South America Standard Time,(GMT-03:00) 巴西利亚,南美州东部标准时间
26 SA Eastern Standard Time,(GMT-03:00) 布宜诺斯艾利斯,乔治敦,南美州东部标准时间
27 Greenland Standard Time,(GMT-03:00) 格陵兰,格陵兰东部标准时间
28 Mid-Atlantic Standard Time,(GMT-02:00) 中大西洋,中大西洋标准时间
29 Azores Standard Time,(GMT-01:00) 亚速尔群岛,亚速尔群岛标准时间
30 Cape Verde Standard Time,(GMT-01:00) 佛得角群岛,佛得角群岛标准时间
31 Greenwich Standard Time,(GMT) 卡萨布兰卡,蒙罗维亚,格林威治标准时间
32 GMT Standard Time,(GMT) 格林威治标准时间: 都柏林, 爱丁堡, 伦敦, 里斯本,格林威治标准时间
33 W. Central Africa Standard Time,(GMT+01:00) 中非西部,中非西部标准时间
34 Romance Standard Time,(GMT+01:00) 布鲁塞尔,哥本哈根,马德里,巴黎,罗马标准时间
35 Central European Standard Time,(GMT+01:00) 萨拉热窝,斯科普里,华沙,萨格勒布,中欧标准时间
36 Central Europe Standard Time,(GMT+01:00) 贝尔格莱德,布拉迪斯拉发,布达佩斯,卢布尔雅那,布拉格,中欧标准时间
37 W. Europe Standard Time,(GMT+01:00) 阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳,西欧标准时间
38 South Africa Standard Time,(GMT+02:00) 哈拉雷,比勒陀利亚,南非标准时间
39 E. Europe Standard Time,(GMT+02:00) 布加勒斯特,东欧标准时间
40 Egypt Standard Time,(GMT+02:00) 开罗,埃及标准时间
41 Israel Standard Time,(GMT+02:00) 耶路撒冷,耶路撒冷标准时间
42 FLE Standard Time,(GMT+02:00) 赫尔辛基,基辅,里加,索非亚,塔林,维尔纽斯,FLE 标准时间
43 GTB Standard Time,(GMT+02:00) 雅典,贝鲁特,伊斯坦布尔,明斯克,GTB 标准时间
44 E. Africa Standard Time,(GMT+03:00) 内罗毕,东非标准时间
45 Arabic Standard Time,(GMT+03:00) 巴格达,阿拉伯标准时间
46 Arab Standard Time,(GMT+03:00) 科威特,利雅得,阿拉伯标准时间
47 Russian Standard Time,(GMT+03:00) 莫斯科,圣彼得堡, 伏尔加格勒,俄罗斯标准时间
48 Iran Standard Time,(GMT+03:30) 德黑兰,伊朗标准时间
49 Caucasus Standard Time,(GMT+04:00) 巴库,第比利斯,埃里温,高加索标准时间
50 Arabian Standard Time,(GMT+04:00) 阿布扎比,马斯喀特,阿拉伯半岛标准时间
51 Afghanistan Standard Time,(GMT+04:30) 喀布尔,阿富汗标准时间
52 West Asia Standard Time,(GMT+05:00) 伊斯兰堡,卡拉奇,塔什干,西亚标准时间
53 Ekaterinburg Standard Time,(GMT+05:00) 叶卡捷琳堡,叶卡捷琳堡标准时间
54 India Standard Time,(GMT+05:30) 马德拉斯,加尔各答,孟买,新德里,印度标准时间
55 Nepal Standard Time,(GMT+05:45) 加德满都,尼泊尔标准时间
56 Sri Lanka Standard Time,(GMT+06:00) 斯里哈亚华登尼普拉,斯里兰卡标准时间
57 N. Central Asia Standard Time,(GMT+06:00) 阿拉木图,新西伯利亚,中亚北部标准时间
58 Central Asia Standard Time,(GMT+06:00) 阿斯塔纳,达卡,中亚标准时间
59 Myanmar Standard Time,(GMT+06:30) 仰光,缅甸标准时间
60 North Asia Standard Time,(GMT+07:00) 克拉斯诺亚尔斯克,北亚标准时间
61 SE Asia Standard Time,(GMT+07:00) 曼谷,河内,雅加达,东南亚标准时间
62 North Asia East Standard Time,(GMT+08:00) 伊尔库茨克,乌兰巴图,北亚东部标准时间
63 China Standard Time,(GMT+08:00) 北京,重庆,香港特别行政区,乌鲁木齐,中国标准时间
64 Taipei Standard Time,(GMT+08:00) 台北,台北标准时间
65 Singapore Standard Time,(GMT+08:00) 吉隆坡,新加坡,马来西亚半岛标准时间
66 W. Australia Standard Time,(GMT+08:00) 珀斯,澳大利亚西部标准时间
67 Tokyo Standard Time,(GMT+09:00) 大坂,札幌,东京,东京标准时间
68 Korea Standard Time,(GMT+09:00) 汉城,韩国标准时间
69 Yakutsk Standard Time,(GMT+09:00) 雅库茨克,雅库茨克标准时间
70 AUS Central Standard Time,(GMT+09:30) 达尔文,澳大利亚中部标准时间
71 Cen. Australia Standard Time,(GMT+09:30) 阿德莱德,澳大利亚中部标准时间
72 West Pacific Standard Time,(GMT+10:00) 关岛,莫尔兹比港,西太平洋标准时间
73 AUS Eastern Standard Time,(GMT+10:00) 堪培拉,墨尔本,悉尼,澳大利亚东部标准时间
74 E. Australia Standard Time,(GMT+10:00) 布里斯班,澳大利亚东部标准时间
75 Vladivostok Standard Time,(GMT+10:00) 符拉迪沃斯托克,符拉迪沃斯托克标准时间
76 Tasmania Standard Time,(GMT+10:00) 霍巴特,塔斯马尼亚岛标准时间
77 Central Pacific Standard Time,(GMT+11:00) 马加丹,索罗门群岛,新喀里多尼亚,太平洋中部标准时间
78 New Zealand Standard Time,(GMT+12:00) 奥克兰,惠灵顿,新西兰标准时间
79 Fiji Standard Time,(GMT+12:00) 斐济,堪察加半岛,马绍尔群岛,斐济标准时间
80 Tonga Standard Time,(GMT+13:00) 努库阿洛法,汤加标准时间
81 */

 

posted @ 2013-10-26 15:55  寂小魔  阅读(3856)  评论(0编辑  收藏  举报