The static TimeZone.CurrentTimeZone method returns a TimeZone object based on the current local settings : TimeZone : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » TimeZone »

 

The static TimeZone.CurrentTimeZone method returns a TimeZone object based on the current local settings








    
 


using System;
public class MainClass {
    public static void Main() {
        TimeZone zone = TimeZone.CurrentTimeZone;
        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
» TimeZone