将时间转换为指定时区(TimeZoneInfo)时间
//查看所有地区时间信息
IList<TimeZoneInfo> lines = TimeZoneInfo.GetSystemTimeZones();
//根据ID获得时区信息
TimeZoneInfo TimeZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
//检查当时间在指定时区是否为夏令时
bool IsDaylight = TimeZone.IsDaylightSavingTime(utcTime);
//将时间转为UTC时间
DateTime UTC = TimeZoneInfo.ConvertTimeToUtc(time, TimeZoneInfo.Local);
//将UTC时间转为指定时区时间
var utcTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, TimeZone);
TimeZoneInfo对象字段
- Id
- BaseUtcOffset(时区)
- DisplayName(展示名称)
- StandardName(标准名称)
- DaylightName(夏令时名称)
- SupportsDaylightSavingTime(是否夏令时)
几个常用时区
国家 | 代码 | 时区ID | 标准名称 |
美国 | US | Pacific Standard Time | 太平洋标准时间 |
英国 | GB | GMT Standard Time | GMT 标准时间 |
德国 | DE | W. Europe Standard Time | 西欧标准时间 |
法国 | FR | Romance Standard Time | 罗马标准时间 |
日本 | JP | Tokyo Standard Time | 东京标准时间 |
意大利 | IT | W. Europe Standard Time | 西欧标准时间 |
西班牙 | ES | Romance Standard Time | 罗马标准时间 |
加拿大 | CA | Pacific Standard Time | 太平洋标准时间 |
墨西哥 | MX | Central Standard Time (Mexico) | 中部标准时间(墨西哥) |
中国 | CN | China Standard Time | 中国标准时间 |
澳大利亚 | AU | E. Australia Standard Time | 东部澳大利亚标准时间 |
全部时区信息 2021-05-19
\ | Id | BaseUtcOffset | DisplayName | StandardName | SupportsDaylightSavingTime |
1 | Dateline Standard Time | -12:00:00 | (UTC-12:00) 国际日期变更线西 | 国际日期变更线标准时间 | FALSE |
2 | UTC-11 | -11:00:00 | (UTC-11:00) 协调世界时-11 | UTC-11 | FALSE |
3 | Hawaiian Standard Time | -10:00:00 | (UTC-10:00) 夏威夷 | 夏威夷标准时间 | FALSE |
4 | Aleutian Standard Time | -10:00:00 | (UTC-10:00) 阿留申群岛 | 阿留申群岛标准时间 | TRUE |
5 | Marquesas Standard Time | -09:30:00 | (UTC-09:30) 马克萨斯群岛 | 马克萨斯群岛标准时间 | FALSE |
6 | UTC-09 | -09:00:00 | (UTC-09:00) 协调世界时-09 | UTC-09 | FALSE |
7 | Alaskan Standard Time | -09:00:00 | (UTC-09:00) 阿拉斯加 | 阿拉斯加标准时间 | TRUE |
8 | Pacific Standard Time (Mexico) | -08:00:00 | (UTC-08:00) 下加利福尼亚州 | 太平洋标准时间(墨西哥) | TRUE |
9 | UTC-08 | -08:00:00 | (UTC-08:00) 协调世界时-08 | UTC-08 | FALSE |
10 | Pacific Standard Time | -08:00:00 | (UTC-08:00) 太平洋时间(美国和加拿大) | 太平洋标准时间 | TRUE |
11 | US Mountain Standard Time | -07:00:00 | (UTC-07:00) 亚利桑那 | 美国山地标准时间 | FALSE |
12 | Mountain Standard Time (Mexico) | -07:00:00 | (UTC-07:00) 奇瓦瓦,拉巴斯,马萨特兰 | 山地标准时间(墨西哥) | TRUE |
13 | Mountain Standard Time | -07:00:00 | (UTC-07:00) 山地时间(美国和加拿大) | 山地标准时间 | TRUE |
14 | Yukon Standard Time | -07:00:00 | (UTC-07:00) 育空 | 育空标准时间 | TRUE |
15 | Central America Standard Time | -06:00:00 | (UTC-06:00) 中美洲 | 中美洲标准时间 | FALSE |
16 | Central Standard Time | -06:00:00 | (UTC-06:00) 中部时间(美国和加拿大) | 中部标准时间 | TRUE |
17 | Easter Island Standard Time | -06:00:00 | (UTC-06:00) 复活节岛 | 复活节岛标准时间 | TRUE |
18 | Central Standard Time (Mexico) | -06:00:00 | (UTC-06:00) 瓜达拉哈拉,墨西哥城,蒙特雷 | 中部标准时间(墨西哥) | TRUE |
19 | Canada Central Standard Time | -06:00:00 | (UTC-06:00) 萨斯喀彻温 | 加拿大中部标准时间 | FALSE |
20 | Eastern Standard Time | -05:00:00 | (UTC-05:00) 东部时间(美国和加拿大) | 东部标准时间 | TRUE |
21 | Eastern Standard Time (Mexico) | -05:00:00 | (UTC-05:00) 切图马尔 | 东部标准时间(墨西哥) | TRUE |
22 | US Eastern Standard Time | -05:00:00 | (UTC-05:00) 印地安那州(东部) | 美国东部标准时间 | TRUE |
23 | Cuba Standard Time | -05:00:00 | (UTC-05:00) 哈瓦那 | 古巴标准时间 | TRUE |
24 | SA Pacific Standard Time | -05:00:00 | (UTC-05:00) 波哥大,利马,基多,里奥布朗库 | 南美洲太平洋标准时间 | FALSE |
25 | Haiti Standard Time | -05:00:00 | (UTC-05:00) 海地 | 海地标准时间 | TRUE |
26 | Turks And Caicos Standard Time | -05:00:00 | (UTC-05:00) 特克斯和凯科斯群岛 | 特克斯和凯科斯群岛标准时间 | TRUE |
27 | SA Western Standard Time | -04:00:00 | (UTC-04:00) 乔治敦,拉巴斯,马瑙斯,圣胡安 | 南美洲西部标准时间 | FALSE |
28 | Paraguay Standard Time | -04:00:00 | (UTC-04:00) 亚松森 | 巴拉圭标准时间 | TRUE |
29 | Venezuela Standard Time | -04:00:00 | (UTC-04:00) 加拉加斯 | 委内瑞拉标准时间 | TRUE |
30 | Pacific SA Standard Time | -04:00:00 | (UTC-04:00) 圣地亚哥 | 太平洋南美洲标准时间 | TRUE |
31 | Atlantic Standard Time | -04:00:00 | (UTC-04:00) 大西洋时间(加拿大) | 大西洋标准时间 | TRUE |
32 | Central Brazilian Standard Time | -04:00:00 | (UTC-04:00) 库亚巴 | 巴西中部标准时间 | TRUE |
33 | Newfoundland Standard Time | -03:30:00 | (UTC-03:30) 纽芬兰 | 纽芬兰标准时间 | TRUE |
34 | SA Eastern Standard Time | -03:00:00 | (UTC-03:00) 卡宴,福塔雷萨 | 南美洲东部标准时间 | FALSE |
35 | Saint Pierre Standard Time | -03:00:00 | (UTC-03:00) 圣皮埃尔和密克隆群岛 | 圣皮埃尔标准时间 | TRUE |
36 | E. South America Standard Time | -03:00:00 | (UTC-03:00) 巴西利亚 | 东部南美洲标准时间 | TRUE |
37 | Argentina Standard Time | -03:00:00 | (UTC-03:00) 布宜诺斯艾利斯 | 阿根廷标准时间 | TRUE |
38 | Greenland Standard Time | -03:00:00 | (UTC-03:00) 格陵兰 | 格陵兰标准时间 | TRUE |
39 | Bahia Standard Time | -03:00:00 | (UTC-03:00) 萨尔瓦多 | 巴伊亚标准时间 | TRUE |
40 | Montevideo Standard Time | -03:00:00 | (UTC-03:00) 蒙得维的亚 | 蒙得维的亚标准时间 | TRUE |
41 | Magallanes Standard Time | -03:00:00 | (UTC-03:00) 蓬塔阿雷纳斯 | 麦哲伦标准时间 | TRUE |
42 | Tocantins Standard Time | -03:00:00 | (UTC-03:00) 阿拉瓜伊纳 | 托坎廷斯标准时间 | TRUE |
43 | Mid-Atlantic Standard Time | -02:00:00 | (UTC-02:00) 中大西洋 - 旧用 | 中大西洋标准时间 | TRUE |
44 | UTC-02 | -02:00:00 | (UTC-02:00) 协调世界时-02 | UTC-02 | FALSE |
45 | Azores Standard Time | -01:00:00 | (UTC-01:00) 亚速尔群岛 | 亚速尔群岛标准时间 | TRUE |
46 | Cape Verde Standard Time | -01:00:00 | (UTC-01:00) 佛得角群岛 | 佛得角标准时间 | FALSE |
47 | UTC | 00:00:00 | (UTC) 协调世界时 | 协调世界时 | FALSE |
48 | Sao Tome Standard Time | 00:00:00 | (UTC+00:00) 圣多美 | 圣多美标准时 | TRUE |
49 | Greenwich Standard Time | 00:00:00 | (UTC+00:00) 蒙罗维亚,雷克雅未克 | 格林威治标准时间 | FALSE |
50 | GMT Standard Time | 00:00:00 | (UTC+00:00) 都柏林,爱丁堡,里斯本,伦敦 | GMT 标准时间 | TRUE |
51 | Morocco Standard Time | 00:00:00 | (UTC+01:00) 卡萨布兰卡 | 摩洛哥标准时间 | TRUE |
52 | W. Central Africa Standard Time | 01:00:00 | (UTC+01:00) 中非西部 | 中非西部标准时间 | FALSE |
53 | Romance Standard Time | 01:00:00 | (UTC+01:00) 布鲁塞尔,哥本哈根,马德里,巴黎 | 罗马标准时间 | TRUE |
54 | Central European Standard Time | 01:00:00 | (UTC+01:00) 萨拉热窝,斯科普里,华沙,萨格勒布 | 中欧的标准时间 | TRUE |
55 | Central Europe Standard Time | 01:00:00 | (UTC+01:00) 贝尔格莱德,布拉迪斯拉发,布达佩斯,卢布尔雅那,布拉格 | 中欧标准时间 | TRUE |
56 | W. Europe Standard Time | 01:00:00 | (UTC+01:00) 阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳 | 西欧标准时间 | TRUE |
57 | West Bank Standard Time | 02:00:00 | (UTC+02:00) 加沙,希伯伦 | 西岸加沙标准时间 | TRUE |
58 | Kaliningrad Standard Time | 02:00:00 | (UTC+02:00) 加里宁格勒 | 俄罗斯 TZ 1 标准时间 | TRUE |
59 | South Africa Standard Time | 02:00:00 | (UTC+02:00) 哈拉雷,比勒陀利亚 | 南非标准时间 | FALSE |
60 | Sudan Standard Time | 02:00:00 | (UTC+02:00) 喀土穆 | 苏丹标准时 | TRUE |
61 | E. Europe Standard Time | 02:00:00 | (UTC+02:00) 基希讷乌 | 东欧标准时间 | TRUE |
62 | Syria Standard Time | 02:00:00 | (UTC+02:00) 大马士革 | 叙利亚标准时间 | TRUE |
63 | Jordan Standard Time | 02:00:00 | (UTC+02:00) 安曼 | 约旦标准时间 | TRUE |
64 | Egypt Standard Time | 02:00:00 | (UTC+02:00) 开罗 | 埃及标准时间 | TRUE |
65 | South Sudan Standard Time | 02:00:00 | (UTC+02:00) 朱巴 | 南苏丹标准时间 | TRUE |
66 | Namibia Standard Time | 02:00:00 | (UTC+02:00) 温得和克 | 纳米比亚标准时间 | TRUE |
67 | Libya Standard Time | 02:00:00 | (UTC+02:00) 的黎波里 | 利比亚标准时间 | TRUE |
68 | Israel Standard Time | 02:00:00 | (UTC+02:00) 耶路撒冷 | 耶路撒冷标准时间 | TRUE |
69 | Middle East Standard Time | 02:00:00 | (UTC+02:00) 贝鲁特 | 中东标准时间 | TRUE |
70 | FLE Standard Time | 02:00:00 | (UTC+02:00) 赫尔辛基,基辅,里加,索非亚,塔林,维尔纽斯 | FLE 标准时间 | TRUE |
71 | GTB Standard Time | 02:00:00 | (UTC+02:00) 雅典,布加勒斯特 | GTB 标准时间 | TRUE |
72 | Turkey Standard Time | 03:00:00 | (UTC+03:00) 伊斯坦布尔 | 土耳其标准时间 | TRUE |
73 | Volgograd Standard Time | 03:00:00 | (UTC+03:00) 伏尔加格勒 | 伏尔加格勒标准时间 | TRUE |
74 | E. Africa Standard Time | 03:00:00 | (UTC+03:00) 内罗毕 | 东非标准时间 | FALSE |
75 | Arabic Standard Time | 03:00:00 | (UTC+03:00) 巴格达 | 阿拉伯 (Arabic) 标准时间 | TRUE |
76 | Belarus Standard Time | 03:00:00 | (UTC+03:00) 明斯克 | 白俄罗斯标准时间 | TRUE |
77 | Arab Standard Time | 03:00:00 | (UTC+03:00) 科威特,利雅得 | 阿拉伯 (Arab) 标准时间 | FALSE |
78 | Russian Standard Time | 03:00:00 | (UTC+03:00) 莫斯科,圣彼得堡 | 俄罗斯 TZ 2 标准时间 | TRUE |
79 | Iran Standard Time | 03:30:00 | (UTC+03:30) 德黑兰 | 伊朗标准时间 | TRUE |
80 | Russia Time Zone 3 | 04:00:00 | (UTC+04:00) 伊热夫斯克,萨马拉 | 俄罗斯 TZ 3 标准时间 | TRUE |
81 | Caucasus Standard Time | 04:00:00 | (UTC+04:00) 埃里温 | 高加索标准时间 | TRUE |
82 | Azerbaijan Standard Time | 04:00:00 | (UTC+04:00) 巴库 | 阿塞拜疆标准时间 | TRUE |
83 | Georgian Standard Time | 04:00:00 | (UTC+04:00) 第比利斯 | 格鲁吉亚标准时间 | FALSE |
84 | Saratov Standard Time | 04:00:00 | (UTC+04:00) 萨拉托夫 | 萨拉托夫标准时间 | TRUE |
85 | Mauritius Standard Time | 04:00:00 | (UTC+04:00) 路易港 | 毛里求斯标准时间 | TRUE |
86 | Arabian Standard Time | 04:00:00 | (UTC+04:00) 阿布扎比,马斯喀特 | 阿拉伯半岛标准时间 | FALSE |
87 | Astrakhan Standard Time | 04:00:00 | (UTC+04:00) 阿斯特拉罕,乌里扬诺夫斯克 | 阿斯特拉罕标准时间 | TRUE |
88 | Afghanistan Standard Time | 04:30:00 | (UTC+04:30) 喀布尔 | 阿富汗标准时间 | FALSE |
89 | Pakistan Standard Time | 05:00:00 | (UTC+05:00) 伊斯兰堡,卡拉奇 | 巴基斯坦标准时间 | TRUE |
90 | Qyzylorda Standard Time | 05:00:00 | (UTC+05:00) 克孜洛尔达 | 克孜洛尔达标准时间 | TRUE |
91 | Ekaterinburg Standard Time | 05:00:00 | (UTC+05:00) 叶卡捷琳堡 | 俄罗斯 TZ 4 标准时间 | TRUE |
92 | West Asia Standard Time | 05:00:00 | (UTC+05:00) 阿什哈巴德,塔什干 | 西亚标准时间 | FALSE |
93 | Sri Lanka Standard Time | 05:30:00 | (UTC+05:30) 斯里加亚渥登普拉 | 斯里兰卡标准时间 | FALSE |
94 | India Standard Time | 05:30:00 | (UTC+05:30) 钦奈,加尔各答,孟买,新德里 | 印度标准时间 | FALSE |
95 | Nepal Standard Time | 05:45:00 | (UTC+05:45) 加德满都 | 尼泊尔标准时间 | FALSE |
96 | Bangladesh Standard Time | 06:00:00 | (UTC+06:00) 达卡 | 孟加拉国标准时间 | TRUE |
97 | Omsk Standard Time | 06:00:00 | (UTC+06:00) 鄂木斯克 | 鄂木斯克标准时间 | TRUE |
98 | Central Asia Standard Time | 06:00:00 | (UTC+06:00) 阿斯塔纳 | 中亚标准时间 | FALSE |
99 | Myanmar Standard Time | 06:30:00 | (UTC+06:30) 仰光 | 缅甸标准时间 | FALSE |
100 | North Asia Standard Time | 07:00:00 | (UTC+07:00) 克拉斯诺亚尔斯克 | 俄罗斯 TZ 6 标准时间 | TRUE |
101 | Altai Standard Time | 07:00:00 | (UTC+07:00) 巴尔瑙尔,戈尔诺-阿尔泰斯克 | 阿尔泰标准时间 | TRUE |
102 | Tomsk Standard Time | 07:00:00 | (UTC+07:00) 托木斯克 | 托木斯克标准时间 | TRUE |
103 | N. Central Asia Standard Time | 07:00:00 | (UTC+07:00) 新西伯利亚 | 新西伯利亚标准时间 | TRUE |
104 | SE Asia Standard Time | 07:00:00 | (UTC+07:00) 曼谷,河内,雅加达 | 东南亚标准时间 | FALSE |
105 | W. Mongolia Standard Time | 07:00:00 | (UTC+07:00) 科布多 | 西蒙古标准时间 | TRUE |
106 | Ulaanbaatar Standard Time | 08:00:00 | (UTC+08:00) 乌兰巴托 | 乌兰巴托标准时间 | TRUE |
107 | North Asia East Standard Time | 08:00:00 | (UTC+08:00) 伊尔库茨克 | 俄罗斯 TZ 7 标准时间 | TRUE |
108 | China Standard Time | 08:00:00 | (UTC+08:00) 北京,重庆,香港特别行政区,乌鲁木齐 | 中国标准时间 | FALSE |
109 | Taipei Standard Time | 08:00:00 | (UTC+08:00) 台北 | 台北标准时间 | FALSE |
110 | Singapore Standard Time | 08:00:00 | (UTC+08:00) 吉隆坡,新加坡 | 马来西亚半岛标准时间 | FALSE |
111 | W. Australia Standard Time | 08:00:00 | (UTC+08:00) 珀斯 | 澳大利亚西部标准时间 | TRUE |
112 | Aus Central W. Standard Time | 08:45:00 | (UTC+08:45) 尤克拉 | 澳大利亚中西部标准时间 | FALSE |
113 | Tokyo Standard Time | 09:00:00 | (UTC+09:00) 大阪,札幌,东京 | 东京标准时间 | FALSE |
114 | North Korea Standard Time | 09:00:00 | (UTC+09:00) 平壤 | 朝鲜标准时间 | TRUE |
115 | Transbaikal Standard Time | 09:00:00 | (UTC+09:00) 赤塔市 | 外贝加尔标准时间 | TRUE |
116 | Yakutsk Standard Time | 09:00:00 | (UTC+09:00) 雅库茨克 | 俄罗斯 TZ 8 标准时间 | TRUE |
117 | Korea Standard Time | 09:00:00 | (UTC+09:00) 首尔 | 韩国标准时间 | FALSE |
118 | AUS Central Standard Time | 09:30:00 | (UTC+09:30) 达尔文 | 澳大利亚中部标准时间 | FALSE |
119 | Cen. Australia Standard Time | 09:30:00 | (UTC+09:30) 阿德莱德 | 中部澳大利亚标准时间 | TRUE |
120 | West Pacific Standard Time | 10:00:00 | (UTC+10:00) 关岛,莫尔兹比港 | 太平洋西部标准时间 | FALSE |
121 | AUS Eastern Standard Time | 10:00:00 | (UTC+10:00) 堪培拉,墨尔本,悉尼 | 澳大利亚东部标准时间 | TRUE |
122 | E. Australia Standard Time | 10:00:00 | (UTC+10:00) 布里斯班 | 东部澳大利亚标准时间 | FALSE |
123 | Vladivostok Standard Time | 10:00:00 | (UTC+10:00) 符拉迪沃斯托克 | 俄罗斯 TZ 9 标准时间 | TRUE |
124 | Tasmania Standard Time | 10:00:00 | (UTC+10:00) 霍巴特 | 塔斯马尼亚岛标准时间 | TRUE |
125 | Lord Howe Standard Time | 10:30:00 | (UTC+10:30) 豪勋爵岛 | 豪勋爵岛标准时间 | TRUE |
126 | Russia Time Zone 10 | 11:00:00 | (UTC+11:00) 乔库尔达赫 | 俄罗斯 TZ 10 标准时间 | TRUE |
127 | Bougainville Standard Time | 11:00:00 | (UTC+11:00) 布干维尔岛 | 布干维尔岛标准时间 | TRUE |
128 | Central Pacific Standard Time | 11:00:00 | (UTC+11:00) 所罗门群岛,新喀里多尼亚 | 太平洋中部标准时间 | FALSE |
129 | Sakhalin Standard Time | 11:00:00 | (UTC+11:00) 萨哈林 | 萨哈林标准时间 | TRUE |
130 | Norfolk Standard Time | 11:00:00 | (UTC+11:00) 诺福克岛 | 诺福克岛标准时间 | TRUE |
131 | Magadan Standard Time | 11:00:00 | (UTC+11:00) 马加丹 | 马加丹标准时间 | TRUE |
132 | UTC+12 | 12:00:00 | (UTC+12:00) 协调世界时+12 | UTC+12 | FALSE |
133 | New Zealand Standard Time | 12:00:00 | (UTC+12:00) 奥克兰,惠灵顿 | 新西兰标准时间 | TRUE |
134 | Kamchatka Standard Time | 12:00:00 | (UTC+12:00) 彼得罗巴甫洛夫斯克-堪察加 - 旧用 | 堪察加标准时间 | TRUE |
135 | Fiji Standard Time | 12:00:00 | (UTC+12:00) 斐济 | 斐济标准时间 | TRUE |
136 | Russia Time Zone 11 | 12:00:00 | (UTC+12:00) 阿纳德尔,堪察加彼得罗巴甫洛夫斯克 | 俄罗斯 TZ 11 标准时间 | TRUE |
137 | Chatham Islands Standard Time | 12:45:00 | (UTC+12:45) 查塔姆群岛 | 查塔姆群岛标准时间 | TRUE |
138 | Tonga Standard Time | 13:00:00 | (UTC+13:00) 努库阿洛法 | 汤加标准时间 | TRUE |
139 | UTC+13 | 13:00:00 | (UTC+13:00) 协调世界时+13 | UTC+13 | FALSE |
140 | Samoa Standard Time | 13:00:00 | (UTC+13:00) 萨摩亚群岛 | 萨摩亚群岛标准时间 | TRUE |
141 | Line Islands Standard Time | 14:00:00 | (UTC+14:00) 圣诞岛 | 莱恩群岛标准时间 | FALSE |