TimeZone from Brazil for DateTimeOffset C #

2

I would like to know what possible TimeZones are available for all regions of Brazil.

I saw that we have E. South America Standard Time for Brasilia time, but for example, what would Timezone be in Acre?

    
asked by anonymous 14.11.2018 / 18:49

1 answer

2

I found in the documentation the TimeZoneInfo.GetSystemTimeZones() method, which:

  

TimeZoneInfo.GetSystemTimeZones Method

     

Returns a sorted collection of all time zones for which information is available on the local system.

And in the documentation of the TimeZoneInfo.FindSystemTimeZoneById() function, which the question's author is using, it says the following:

  

TimeZoneInfo.FindSystemTimeZoneById (String) Method

     

Retrieves a TimeZoneInfo object from the registry based on its identifier.

     

On Windows systems, FindSystemTimeZoneById tries to match id to the subkey names of the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zones branch.

I used the method:

// Retorna uma coleção do tipo
// System.Collections.ObjectModel.ReadOnlyCollection<TimeZoneInfo>.
var timeLista = TimeZoneInfo.GetSystemTimeZones();

I separated some of the returned items, and I also analyzed those items in the Windows Registry in% with%, and finally got to the following list:

+--------------------------------------------------+---------------------------------+---------------------------------+
|                   DisplayName                    |          StandardName           |          DaylightName           |
+--------------------------------------------------+---------------------------------+---------------------------------+
| (UTC-05:00) Bogota, Lima, Quito, Rio Branco      | SA Pacific Standard Time        | SA Pacific Daylight Time        |
| (UTC-04:00) Cuiaba                               | Central Brazilian Standard Time | Central Brazilian Daylight Time |
| (UTC-04:00) Georgetown, La Paz, Manaus, San Juan | SA Western Standard Time        | SA Western Daylight Time        |
| (UTC-03:00) Araguaina                            | Tocantins Standard Time         | Tocantins Daylight Time         |
| (UTC-03:00) Brasilia                             | E. South America Standard Time  | E. South America Daylight Time  |
| (UTC-03:00) Cayenne, Fortaleza                   | SA Eastern Standard Time        | SA Eastern Daylight Time        |
| (UTC-03:00) Salvador                             | Bahia Standard Time             | Bahia Daylight Time             |
+--------------------------------------------------+---------------------------------+---------------------------------+
    
14.11.2018 / 19:50