UTC time zone table (. NET)

Source: Internet
Author: User
Tags time zones

 

Recently, I fixed a cross-Time Zone bug in the project. To fix this bug, it really takes a lot of effort. It seems that the main reason is that the development tasks do not involve this concept in normal times, and the test case for testing the cross-time zone function is also difficult to write. To solve the problem of cross-time zone function smoothly in the future, a cross-Time Zone table is created, with a total of 102 time zones:

UTC time zone table

 

Dateline Standard Time | UTC-12: 00 UTC-11 UTC-11: 00 Hawaiian Standard Time | UTC-10: 00
Alaskan Standard Time | UTC-09: 00 Pacific Standard Time (Mexico) | UTC-08: 00 Pacific Standard Time | UTC-08: 00
US Mountain Standard Time | UTC-07: 00 Mountain Standard Time (Mexico) | UTC-07: 00 Mountain Standard Time | UTC-07: 00
Central America Standard Time | UTC-06: 00 Central Standard Time | UTC-06: 00 Central Standard Time (Mexico) | UTC-06: 00
Canada Central Standard Time | UTC-06: 00 Sa Pacific Standard Time | UTC-05: 00 Eastern Standard Time | UTC-05: 00
US Eastern Standard Time | UTC-05: 00 Venezuela Standard Time | UTC-04: 30 Paraguay Standard Time | UTC-04: 00
Atlanta Standard Time | UTC-04: 00 Central California Ilian Standard Time | UTC-04: 00 Sa Western standard time | UTC-04: 00
Pacific SA Standard Time | UTC-04: 00 Newfoundland Standard Time | UTC-03: 30 E. South America Standard Time | UTC-03: 00
Argentina Standard Time | UTC-03: 00 Sa Eastern Standard Time | UTC-03: 00 Greenland Standard Time | UTC-03: 00
Monte video standard time | UTC-03: 00 Bahia Standard Time | UTC-03: 00 UTC-02 UTC-02: 00
Mid-Atlantic Standard Time | UTC-02: 00 Azores Standard Time | UTC-01: 00 Cape Verde Standard Time | UTC-01: 00
Morocco Standard Time | UTC Coordinated Universal Time | UTC GMT Standard Time | UTC
Greenwich Standard Time | UTC W. Europe Standard Time | UTC + 0: 00 </TD> Central Europe Standard Time | UTC + 0: 00
Romance Standard Time | UTC + 0: 00 Central European Standard Time | UTC + 0: 00 Libya Standard Time | UTC + 0: 00
W. Central Africa Standard Time | UTC + 0: 00 Namibia Standard Time | UTC + 0: 00 GTB Standard Time | UTC + 0: 00
Middle East Standard Time | UTC + Egypt Standard Time | UTC + 0: 00 Syria Standard Time | UTC + 0: 00
E. Europe Standard Time | UTC + 0: 00 South Africa Standard Time | UTC + 0: 00 FLE Standard Time | UTC + 0: 00
Turkey Standard Time | UTC + 0: 00 Jerusalem Standard Time | UTC + 0: 00 Jordan Standard Time | UTC + 0: 00
Arabic Standard Time | UTC + 0: 00 Kaliningrad Standard Time | UTC + 0: 00 Arab standard time | UTC + 0: 00
E. Africa Standard Time | UTC + 0: 00 Iran Standard Time | UTC + </TD> Arabian Standard Time | UTC +
Azerbaijan Standard Time | UTC + Russian Standard Time | UTC + Mauritius Standard Time | UTC +
Georgian Standard Time | UTC + Caucasus Standard Time | UTC + Afghanistan Standard Time | UTC +
Pakistan Standard Time | UTC + 05:00 West Asia Standard Time | UTC + 05:00 India Standard Time | UTC + 05:30
Sri Lanka Standard Time | UTC + 05:30 Nepal Standard Time | UTC + 05:45 </TD> Central Asia Standard Time | UTC + 06:00
Bangladesh standard time | UTC + 06:00 Ekaterinburg Standard Time | UTC + 06:00 Myanmar Standard Time | UTC + 06:30
SE Asia Standard Time | UTC + 07:00 N. Central Asia Standard Time | UTC + 07:00 China Standard Time | UTC + 08:00
North Asia Standard Time | UTC + 08:00 Malay Peninsula Standard Time | UTC + 08:00 W. Australia Standard Time | UTC + 08:00
Taipei Standard Time | UTC + 08:00 Ulaanbaatar Standard Time | UTC + 08:00 North Asia East Standard Time | UTC + 09:00
Tokyo Standard Time | UTC + 09:00 Korea Standard Time | UTC + 09:00 CEN. Australia Standard Time | UTC + 09:30
Aus Central Standard Time | UTC + 09:30 E. Australia Standard Time | UTC + 10: 00 Aus Eastern Standard Time | UTC + 10: 00
West Pacific Standard Time | UTC + 10: 00 Tasmania Standard Time | UTC + 10: 00 Yakutsk Standard Time | UTC + 10: 00
Central Pacific Standard Time | UTC + 11: 00 Vladivostok Standard Time | UTC + New Zealand Standard Time | UTC + 12: 00
UTC + 12 | UTC + 12: 00 Fiji Standard Time | UTC + 12: 00 Magadan Standard Time | UTC + 12: 00

 

Usage of the time zone table

 If I want to simulate two time zones to write test cases, we can do this:

 
Timezoneinfo utc_8 = timezoneinfo. findsystemtimezonebyid ("Pacific Standard Time"); //-8 timezoneinfo utc_4 = timezoneinfo. local; datetime dt_4 = new datetime (2013, 5, 8, 7, 0, 0); //-4 datetime dt_8 = timezoneinfo. converttime (dt_4, utc_8 );
Remarks

In this time zone table, use the '|' symbol to separate the standard name of the time zone and the Offset Value of the UTC time corresponding to the time zone. In actual use, we only need the standard name of the time zone (refer to the small example in this article ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.