The TimeZoneInfo class works in a similar manner. TimeZoneInfo.Local returns the current local time zone : TimeZoneInfo : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » TimeZoneInfo »

 

The TimeZoneInfo class works in a similar manner. TimeZoneInfo.Local returns the current local time zone








    
 

using System;
public class MainClass {
    public static void Main() {
        TimeZoneInfo zone = TimeZoneInfo.Local;
        Console.WriteLine(zone.StandardName);
        Console.WriteLine(zone.DaylightName);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» TimeZoneInfo