Created
July 3, 2020 17:46
-
-
Save alexandrebl/ba9d9f3a18346d33be27f4f3c76b2e8b to your computer and use it in GitHub Desktop.
Get Time Zone Name CSharp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var tzis = TimeZoneInfo.GetSystemTimeZones(); | |
| foreach (var tzi in tzis) | |
| { | |
| Console.WriteLine(string.Format("{0}:::{1}", tzi.Id, tzi.DisplayName)); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment